mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
clippy::clone_on_copy
This commit is contained in:
parent
6cc6dee9e9
commit
705f7e6e26
7 changed files with 6 additions and 7 deletions
|
@ -87,7 +87,7 @@ fn impls_for_trait_item(
|
|||
.filter_map(|imp| {
|
||||
let item = imp.items(sema.db).iter().find_map(|itm| {
|
||||
let itm_name = itm.name(sema.db)?;
|
||||
(itm_name == fun_name).then(|| itm.clone())
|
||||
(itm_name == fun_name).then(|| *itm)
|
||||
})?;
|
||||
item.try_to_nav(sema.db)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue