InEnvironment::new takes a reference
This commit is contained in:
@@ -845,7 +845,7 @@ fn generic_implements_goal(
|
||||
let obligation = trait_ref.cast(&Interner);
|
||||
Canonical {
|
||||
binders: CanonicalVarKinds::from_iter(&Interner, kinds),
|
||||
value: InEnvironment::new(env.env.clone(), obligation),
|
||||
value: InEnvironment::new(&env.env, obligation),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user