about summary refs log tree commit diff
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-09-14 08:33:46 +0000
committerGitHub <noreply@github.com>2025-09-14 08:33:46 +0000
commit181034735b2d673d3934a0c7ebdfed543a24d59d (patch)
tree6e0de2fc2e2ad690343028dc9e29a0adf61d9bc7
parentcb286b44792cb7d6a969d057593a7408f470d5f3 (diff)
parent074bff027e09e35b929a09ba834c68546e4a1194 (diff)
downloadrust-181034735b2d673d3934a0c7ebdfed543a24d59d.tar.gz
rust-181034735b2d673d3934a0c7ebdfed543a24d59d.zip
Remove unnecessary `#![allow]` in test (#15675)
Noticed while working on rust-lang/rust-clippy#15673.

changelog: none
-rw-r--r--tests/ui/never_loop_fixable.fixed2
-rw-r--r--tests/ui/never_loop_fixable.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/never_loop_fixable.fixed b/tests/ui/never_loop_fixable.fixed
index 00c2af93a28..5bc9ff1bb4d 100644
--- a/tests/ui/never_loop_fixable.fixed
+++ b/tests/ui/never_loop_fixable.fixed
@@ -1,4 +1,4 @@
-#![allow(clippy::iter_next_slice, clippy::needless_return, clippy::redundant_pattern_matching)]
+#![allow(clippy::iter_next_slice, clippy::needless_return)]
 
 fn no_break_or_continue_loop() {
     if let Some(i) = [1, 2, 3].iter().next() {
diff --git a/tests/ui/never_loop_fixable.rs b/tests/ui/never_loop_fixable.rs
index de85599f094..9782bc107e9 100644
--- a/tests/ui/never_loop_fixable.rs
+++ b/tests/ui/never_loop_fixable.rs
@@ -1,4 +1,4 @@
-#![allow(clippy::iter_next_slice, clippy::needless_return, clippy::redundant_pattern_matching)]
+#![allow(clippy::iter_next_slice, clippy::needless_return)]
 
 fn no_break_or_continue_loop() {
     for i in [1, 2, 3].iter() {