Suppress unused variable warnings.

This commit is contained in:
Adam Kelly
2018-07-29 08:48:28 +01:00
parent 12a3ff5e7e
commit e79ec8e4cb

View File

@@ -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 = {