From b693c05ddb0346d77c7d8618ce597e248db67509 Mon Sep 17 00:00:00 2001 From: ktanaka101 Date: Sat, 4 Dec 2021 16:39:25 +0900 Subject: [PATCH] Fix clippy warns --- src/compiler/symbol_table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/symbol_table.rs b/src/compiler/symbol_table.rs index 9e18f37..ba9a223 100644 --- a/src/compiler/symbol_table.rs +++ b/src/compiler/symbol_table.rs @@ -109,7 +109,7 @@ impl SymbolTable { } pub fn resolve(&mut self, name: &str) -> Option>> { - 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; }