Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 78c6ede

Browse files
committed
Format
1 parent a843a00 commit 78c6ede

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ast/src/generic.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,14 @@ pub struct StmtClassDef {
405405

406406
impl Node for StmtClassDef {
407407
const NAME: &'static str = "ClassDef";
408-
const FIELD_NAMES: &'static [&'static str] =
409-
&["name", "bases", "keywords", "body", "decorator_list", "type_params"];
408+
const FIELD_NAMES: &'static [&'static str] = &[
409+
"name",
410+
"bases",
411+
"keywords",
412+
"body",
413+
"decorator_list",
414+
"type_params",
415+
];
410416
}
411417
impl From<StmtClassDef> for Stmt {
412418
fn from(payload: StmtClassDef) -> Self {
@@ -463,7 +469,6 @@ impl From<StmtDelete> for Ast {
463469
}
464470
}
465471

466-
467472
/// See also [TypeAlias](https://docs.python.org/3/library/ast.html#ast.TypeAlias)
468473
#[derive(Clone, Debug, PartialEq)]
469474
pub struct StmtTypeAlias {
@@ -3123,7 +3128,6 @@ impl Node for TypeIgnore {
31233128
const FIELD_NAMES: &'static [&'static str] = &[];
31243129
}
31253130

3126-
31273131
/// See also [type_param](https://docs.python.org/3/library/ast.html#ast.type_param)
31283132
#[derive(Clone, Debug, PartialEq, is_macro::Is)]
31293133
pub enum TypeParam {

0 commit comments

Comments
 (0)