mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Suppress unused variable warnings.
This commit is contained in:
1 parent
12a3ff5e7e
commit
e79ec8e4cb
1 file changed
+2
-2
@@ -161,7 +161,7 @@ ForStatement: ast::Statement = {
|
||||
};
|
||||
|
||||
WithStatement: ast::Statement = {
|
||||
"with" <t:Test> "as" <e:Expression> ":" <s:Suite> => ast::Statement::With { items: t, body: s },
|
||||
"with" <t:Test> "as" <_e:Expression> ":" <s:Suite> => ast::Statement::With { items: t, body: s },
|
||||
};
|
||||
|
||||
FuncDef: ast::Statement = {
|
||||
@@ -177,7 +177,7 @@ TypedArgsList: Vec<String> = {
|
||||
};
|
||||
|
||||
ClassDef: ast::Statement = {
|
||||
"class" <n:Identifier> <a:("(" ")")?> ":" <s:Suite> => ast::Statement::ClassDef { name: n },
|
||||
"class" <n:Identifier> <_a:("(" ")")?> ":" <_s:Suite> => ast::Statement::ClassDef { name: n },
|
||||
};
|
||||
|
||||
Test: ast::Expression = {
|
||||
|
||||
Reference in new issue
Block a user