std: remove an unnecessary copy from workcache
This commit is contained in:
parent
7c9b808d46
commit
d6e583ab10
@ -174,7 +174,7 @@ pub impl Database {
|
||||
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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user