From 78c6ede1c923fa9e8ec82bacdc4ebcb132fcf8da Mon Sep 17 00:00:00 2001 From: Zanie Date: Mon, 17 Jul 2023 13:38:47 -0500 Subject: [PATCH] Format --- ast/src/generic.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ast/src/generic.rs b/ast/src/generic.rs index eff85dc837..e3568a3e39 100644 --- a/ast/src/generic.rs +++ b/ast/src/generic.rs @@ -405,8 +405,14 @@ pub struct StmtClassDef { impl Node for StmtClassDef { const NAME: &'static str = "ClassDef"; - const FIELD_NAMES: &'static [&'static str] = - &["name", "bases", "keywords", "body", "decorator_list", "type_params"]; + const FIELD_NAMES: &'static [&'static str] = &[ + "name", + "bases", + "keywords", + "body", + "decorator_list", + "type_params", + ]; } impl From for Stmt { fn from(payload: StmtClassDef) -> Self { @@ -463,7 +469,6 @@ impl From for Ast { } } - /// See also [TypeAlias](https://docs.python.org/3/library/ast.html#ast.TypeAlias) #[derive(Clone, Debug, PartialEq)] pub struct StmtTypeAlias { @@ -3123,7 +3128,6 @@ impl Node for TypeIgnore { const FIELD_NAMES: &'static [&'static str] = &[]; } - /// See also [type_param](https://docs.python.org/3/library/ast.html#ast.type_param) #[derive(Clone, Debug, PartialEq, is_macro::Is)] pub enum TypeParam {