diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-01 23:44:16 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-01 23:44:16 +0200 |
| commit | ac229c281981129003cfcf6ef894bb7655b0d466 (patch) | |
| tree | 2c2d444140da6922448e33da2967901fa32aa9ee /compiler/rustc_hir_analysis/src | |
| parent | 0196c2bd274dd5bb01c77b5a9b1da9623571b0f8 (diff) | |
| download | rust-ac229c281981129003cfcf6ef894bb7655b0d466.tar.gz rust-ac229c281981129003cfcf6ef894bb7655b0d466.zip | |
fix clippy::iter_kv_map
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/astconv/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/errors.rs b/compiler/rustc_hir_analysis/src/astconv/errors.rs index 672e7176fde..113c3f08ab9 100644 --- a/compiler/rustc_hir_analysis/src/astconv/errors.rs +++ b/compiler/rustc_hir_analysis/src/astconv/errors.rs @@ -483,8 +483,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { [segment] if segment.args.is_none() => { trait_bound_spans = vec![segment.ident.span]; associated_types = associated_types - .into_iter() - .map(|(_, items)| (segment.ident.span, items)) + .into_values() + .map(|items| (segment.ident.span, items)) .collect(); } _ => {} |
