don't clone Copy types
This commit is contained in:
parent
35a99eef32
commit
fec9e9ecf1
11 changed files with 16 additions and 16 deletions
|
@ -965,7 +965,7 @@ impl<'a, 'tcx> Encodable<CacheEncoder<'a, 'tcx>> for Symbol {
|
|||
s.emit_str(self.as_str());
|
||||
}
|
||||
Entry::Occupied(o) => {
|
||||
let x = o.get().clone();
|
||||
let x = *o.get();
|
||||
s.emit_u8(SYMBOL_OFFSET);
|
||||
s.emit_usize(x);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue