mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
std: remove an unnecessary copy from workcache
This commit is contained in:
@@ -174,7 +174,7 @@ fn prepare(&mut self, fn_name: &str,
|
||||
let k = json_encode(&(fn_name, declared_inputs));
|
||||
match self.db_cache.find(&k) {
|
||||
None => None,
|
||||
Some(&v) => Some(json_decode(copy v))
|
||||
Some(v) => Some(json_decode(*v))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user