Use .copied() instead of .cloned()

This commit is contained in:
Nick Fitzgerald
2021-09-29 13:38:00 -07:00
committed by Chris Fallin
parent 6604a26e27
commit 9be1942b11
2 changed files with 1 additions and 1 deletions

View File

@@ -622,7 +622,7 @@ impl TypeEnv {
}
fn intern_mut(&mut self, ident: &ast::Ident) -> Sym {
if let Some(s) = self.sym_map.get(&ident.0).cloned() {
if let Some(s) = self.sym_map.get(&ident.0).copied() {
s
} else {
let s = Sym(self.syms.len());