mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
InEnvironment::new takes a reference
This commit is contained in:
parent
d1b645d236
commit
be0084a0bc
5 changed files with 7 additions and 7 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue