Merge pull request #2254 from youknowone/fix-clippy

Fix nightly clippy
This commit is contained in:
Jeong YunWon
2020-10-01 14:34:59 +09:00
committed by GitHub
10 changed files with 26 additions and 64 deletions

View File

@@ -226,10 +226,7 @@ mod decl {
#[pymethod(name = "is_nonlocal")]
fn is_nonlocal(&self) -> bool {
match self.symbol.scope {
symboltable::SymbolScope::Nonlocal => true,
_ => false,
}
matches!(self.symbol.scope, symboltable::SymbolScope::Nonlocal)
}
#[pymethod(name = "is_referenced")]