Fix nightly clippy

This commit is contained in:
Jeong YunWon 2020-10-01 07:08:26 +09:00
parent 6c96793f05
commit 09b8414162
2 changed files with 6 additions and 21 deletions

View file

@ -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)
}
}