Skip to content

Commit

Permalink
Fix clippy warns
Browse files Browse the repository at this point in the history
  • Loading branch information
ktanaka101 committed Dec 4, 2021
1 parent 4485aeb commit b693c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/symbol_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl SymbolTable {
}

pub fn resolve(&mut self, name: &str) -> Option<Rc<RefCell<Symbol>>> {
let result = self.store.get(name).map(|sym| Rc::clone(sym));
let result = self.store.get(name).map(Rc::clone);
if result.is_some() {
return result;
}
Expand Down

0 comments on commit b693c05

Please sign in to comment.