about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-23 19:56:35 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2024-02-23 19:56:35 +0100
commit86a7fc840f11cd1f20fdf26d3071e34a2d4bc313 (patch)
tree825af3e5f80cc4cb41aca59fe20467a382b2ae22 /compiler/rustc_errors/src/lib.rs
parentb6a23b853719c8c22c022993c9eb2871b09fc2b9 (diff)
downloadrust-86a7fc840f11cd1f20fdf26d3071e34a2d4bc313.tar.gz
rust-86a7fc840f11cd1f20fdf26d3071e34a2d4bc313.zip
compiler: clippy::complexity fixes
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index ada8fa2e965..3f667e264e8 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -844,7 +844,7 @@ impl DiagCtxt {
                 .emitted_diagnostic_codes
                 .iter()
                 .filter_map(|&code| {
-                    if registry.try_find_description(code).is_ok().clone() {
+                    if registry.try_find_description(code).is_ok() {
                         Some(code.to_string())
                     } else {
                         None