std: remove an unnecessary copy from workcache

This commit is contained in:
Erick Tryzelaar 2013-03-03 14:49:44 -08:00
parent 7c9b808d46
commit d6e583ab10

View File

@ -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))
}
}