Rollup merge of #76756 - matthiaskrgr:cl123ppy, r=Dylan-DPC
fix a couple of stylistic clippy warnings namely: clippy::redundant_pattern_matching clippy::redundant_pattern clippy::search_is_some clippy::filter_next clippy::into_iter_on_ref clippy::clone_on_copy clippy::needless_return
This commit is contained in:
commit
a6c4d30c7b
9 changed files with 10 additions and 12 deletions
|
@ -1534,7 +1534,7 @@ impl<'tcx> LifetimeContext<'_, 'tcx> {
|
|||
}
|
||||
};
|
||||
|
||||
let lifetime_names: Vec<_> = lifetime_names.into_iter().collect();
|
||||
let lifetime_names: Vec<_> = lifetime_names.iter().collect();
|
||||
match (&lifetime_names[..], snippet.as_deref()) {
|
||||
([name], Some("&")) => {
|
||||
suggest_existing(err, &name.as_str()[..], &|name| format!("&{} ", name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue