std: remove an unnecessary copy from workcache
This commit is contained in:
parent
7c9b808d46
commit
d6e583ab10
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue