don't clone types that are Copy (clippy::clone_on_copy)
This commit is contained in:
parent
22719efcc5
commit
c1e96085d3
15 changed files with 30 additions and 34 deletions
|
@ -2445,7 +2445,7 @@ impl<'tcx> ProvisionalEvaluationCache<'tcx> {
|
|||
"get_provisional = {:#?}",
|
||||
self.map.borrow().get(&fresh_trait_ref),
|
||||
);
|
||||
Some(self.map.borrow().get(&fresh_trait_ref)?.clone())
|
||||
Some(*self.map.borrow().get(&fresh_trait_ref)?)
|
||||
}
|
||||
|
||||
/// Insert a provisional result into the cache. The result came
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue