mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 20:31:59 +00:00
remove a couple of clones
This commit is contained in:
parent
6c9cf51c55
commit
573c47c9ba
32 changed files with 71 additions and 90 deletions
|
|
@ -210,7 +210,7 @@ pub(crate) fn query_group_impl(
|
|||
.into_iter()
|
||||
.filter(|fn_arg| matches!(fn_arg, FnArg::Typed(_)))
|
||||
.map(|fn_arg| match fn_arg {
|
||||
FnArg::Typed(pat_type) => pat_type.clone(),
|
||||
FnArg::Typed(pat_type) => pat_type,
|
||||
FnArg::Receiver(_) => unreachable!("this should have been filtered out"),
|
||||
})
|
||||
.collect::<Vec<syn::PatType>>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue