mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Remove neesless clone
This commit is contained in:
parent
820393f72d
commit
b50cb5c261
8 changed files with 10 additions and 10 deletions
|
@ -392,7 +392,7 @@ impl HasChildSource<LocalTypeParamId> for GenericDefId {
|
|||
|
||||
// For traits the first type index is `Self`, we need to add it before the other params.
|
||||
if let GenericDefId::TraitId(id) = *self {
|
||||
let trait_ref = id.lookup(db).source(db).value.clone();
|
||||
let trait_ref = id.lookup(db).source(db).value;
|
||||
let idx = idx_iter.next().unwrap();
|
||||
params.insert(idx, Either::Right(trait_ref))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue