don't clone types that are copy

found via clippy
This commit is contained in:
Matthias Krüger 2020-01-16 23:15:52 +01:00
parent 4884061838
commit 7fbd30b1ae
15 changed files with 18 additions and 20 deletions

View file

@ -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(