about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/coherence/builtin.rs
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2024-09-09 12:22:00 +0200
committerEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2024-09-09 13:32:22 +0200
commit0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96 (patch)
treec180e16946093089cae099b227d33c675805b07a /compiler/rustc_hir_analysis/src/coherence/builtin.rs
parentadf8d168af9334a8bf940824fcf4207d01e05ae5 (diff)
downloadrust-0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96.tar.gz
rust-0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96.zip
Remove needless returns detected by clippy in the compiler
Diffstat (limited to 'compiler/rustc_hir_analysis/src/coherence/builtin.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/coherence/builtin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/coherence/builtin.rs b/compiler/rustc_hir_analysis/src/coherence/builtin.rs
index 30fc06829ed..480116a6249 100644
--- a/compiler/rustc_hir_analysis/src/coherence/builtin.rs
+++ b/compiler/rustc_hir_analysis/src/coherence/builtin.rs
@@ -274,7 +274,7 @@ fn visit_implementation_of_dispatch_from_dyn(checker: &Checker<'_>) -> Result<()
                         return false;
                     }
 
-                    return true;
+                    true
                 })
                 .collect::<Vec<_>>();