don't clone types that are copy
found via clippy
This commit is contained in:
parent
4884061838
commit
7fbd30b1ae
15 changed files with 18 additions and 20 deletions
|
|
@ -400,7 +400,7 @@ impl context::UnificationOps<ChalkArenas<'tcx>, ChalkArenas<'tcx>>
|
|||
&mut self,
|
||||
value: &Canonical<'tcx, InEnvironment<'tcx, Goal<'tcx>>>,
|
||||
) -> (Canonical<'tcx, InEnvironment<'tcx, Goal<'tcx>>>, UniverseMap) {
|
||||
(value.clone(), UniverseMap)
|
||||
(*value, UniverseMap)
|
||||
}
|
||||
|
||||
fn invert_goal(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue