remove more redundant clones manually

This commit is contained in:
Matthias Krüger 2024-01-07 00:26:49 +01:00
parent 476e10e961
commit b22bd36f6e
4 changed files with 3 additions and 5 deletions

View file

@ -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),