refactor(semantic): SymbolTable::is_empty use is_empty (#5622)

Nit. `is_empty()` is sometimes more performant than `len() == 0`.
This commit is contained in:
overlookmotel 2024-09-09 01:07:34 +00:00
parent 1fa3e5687a
commit d22a9b72e0

View file

@ -54,7 +54,7 @@ impl SymbolTable {
#[inline]
pub fn is_empty(&self) -> bool {
self.len() == 0
self.spans.is_empty()
}
pub fn symbol_ids(&self) -> impl Iterator<Item = SymbolId> + '_ {