about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-24 19:07:20 +0000
committerbors <bors@rust-lang.org>2024-02-24 19:07:20 +0000
commit6bdb8a4a96945527677f4b3dc7161875834189a4 (patch)
treebc1449e38ba719065860cfcd849c08e6b19cb303 /compiler/rustc_errors/src
parent8f359beca4e58bc3ae795a666301a8f47023044c (diff)
parent86a7fc840f11cd1f20fdf26d3071e34a2d4bc313 (diff)
downloadrust-6bdb8a4a96945527677f4b3dc7161875834189a4.tar.gz
rust-6bdb8a4a96945527677f4b3dc7161875834189a4.zip
Auto merge of #121523 - matthiaskrgr:comp_comp, r=Nilstrieb
compiler: clippy::complexity fixes
Diffstat (limited to 'compiler/rustc_errors/src')
-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