Use .copied() instead of .cloned()
This commit is contained in:
committed by
Chris Fallin
parent
6604a26e27
commit
9be1942b11
@@ -622,7 +622,7 @@ impl TypeEnv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn intern_mut(&mut self, ident: &ast::Ident) -> Sym {
|
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
|
s
|
||||||
} else {
|
} else {
|
||||||
let s = Sym(self.syms.len());
|
let s = Sym(self.syms.len());
|
||||||
|
|||||||
Reference in New Issue
Block a user