Skip to content

Commit a5c86fe

Browse files
committed
tidy: features.rs: Remove a redundant .contains
The match expression immediately below it checks the same condition.
1 parent ebdc1bd commit a5c86fe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/tools/tidy/src/features.rs

-4
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ pub fn check(path: &Path, bad: &mut bool, quiet: bool) {
8888

8989
let gate_test_str = "gate-test-";
9090

91-
if !line.contains(gate_test_str) {
92-
continue;
93-
}
94-
9591
let feature_name = match line.find(gate_test_str) {
9692
Some(i) => {
9793
line[i+gate_test_str.len()..].splitn(2, ' ').next().unwrap()

0 commit comments

Comments
 (0)