mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
remove more redundant clones manually
This commit is contained in:
parent
476e10e961
commit
b22bd36f6e
4 changed files with 3 additions and 5 deletions
|
@ -3673,7 +3673,6 @@ impl Closure {
|
|||
let (captures, _) = infer.closure_info(&self.id);
|
||||
captures
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(|capture| Type {
|
||||
env: db.trait_environment_for_body(owner),
|
||||
ty: capture.ty(&self.subst),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue