1
Fork 0

Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb

clippy::complexity fixes

filter_next
needless_question_mark
bind_instead_of_map
manual_find
derivable_impls
map_identity
redundant_slicing
skip_while_next
unnecessary_unwrap
needless_bool

r? `@compiler-errors`
This commit is contained in:
Dylan DPC 2022-12-19 14:41:35 +05:30 committed by GitHub
commit a9005b6cc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 26 additions and 54 deletions

View file

@ -182,7 +182,7 @@ fn replace_flattened_locals<'tcx>(
let mut fragments = IndexVec::new();
for (k, v) in &replacements.fields {
fragments.ensure_contains_elem(k.local, || Vec::new());
fragments[k.local].push((&k.projection[..], *v));
fragments[k.local].push((k.projection, *v));
}
debug!(?fragments);