diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-23 19:56:35 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-23 19:56:35 +0100 |
| commit | 86a7fc840f11cd1f20fdf26d3071e34a2d4bc313 (patch) | |
| tree | 825af3e5f80cc4cb41aca59fe20467a382b2ae22 /compiler/rustc_resolve | |
| parent | b6a23b853719c8c22c022993c9eb2871b09fc2b9 (diff) | |
| download | rust-86a7fc840f11cd1f20fdf26d3071e34a2d4bc313.tar.gz rust-86a7fc840f11cd1f20fdf26d3071e34a2d4bc313.zip | |
compiler: clippy::complexity fixes
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index 335bf0949d6..51723fc81a0 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -1582,7 +1582,7 @@ impl<'a: 'ast, 'ast, 'tcx> LateResolutionVisitor<'a, '_, 'ast, 'tcx> { None => ("/* fields */".to_string(), Applicability::HasPlaceholders), }; let pad = match field_ids { - Some(field_ids) if field_ids.is_empty() => "", + Some([]) => "", _ => " ", }; err.span_suggestion( |
