mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-03 02:13:16 +00:00
Fix nightly clippy
This commit is contained in:
parent
6c96793f05
commit
09b8414162
2 changed files with 6 additions and 21 deletions
|
@ -136,19 +136,11 @@ impl Symbol {
|
|||
}
|
||||
|
||||
pub fn is_global(&self) -> bool {
|
||||
if let SymbolScope::Global = self.scope {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
matches!(self.scope, SymbolScope::Global)
|
||||
}
|
||||
|
||||
pub fn is_local(&self) -> bool {
|
||||
if let SymbolScope::Local = self.scope {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
matches!(self.scope, SymbolScope::Local)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue