mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix clippy::redundant_clone
This commit is contained in:
parent
d64d711db2
commit
21ffc5350d
5 changed files with 6 additions and 10 deletions
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue