fix clippy::redundant_clone

This commit is contained in:
Matthias Krüger 2022-03-12 14:35:25 +01:00
parent d64d711db2
commit 21ffc5350d
5 changed files with 6 additions and 10 deletions

View file

@ -1530,11 +1530,7 @@ impl SelfParam {
let ctx = hir_ty::TyLoweringContext::new(db, &resolver);
let environment = db.trait_environment(self.func.into());
Type {
krate,
env: environment.clone(),
ty: ctx.lower_ty(&db.function_data(self.func).params[0].1),
}
Type { krate, env: environment, ty: ctx.lower_ty(&db.function_data(self.func).params[0].1) }
}
}