clippy::clone_on_copy

This commit is contained in:
Maan2003 2021-06-13 09:27:19 +05:30
parent 6cc6dee9e9
commit 705f7e6e26
No known key found for this signature in database
GPG key ID: E9AF024BA63C70ED
7 changed files with 6 additions and 7 deletions

View file

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