Skip to content

Commit

Permalink
tidy: features.rs: Remove a redundant .contains
Browse files Browse the repository at this point in the history
The match expression immediately below it checks the same condition.
  • Loading branch information
joshtriplett committed Sep 2, 2018
1 parent ebdc1bd commit a5c86fe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/tools/tidy/src/features.rs
Expand Up @@ -88,10 +88,6 @@ pub fn check(path: &Path, bad: &mut bool, quiet: bool) {

let gate_test_str = "gate-test-";

if !line.contains(gate_test_str) {
continue;
}

let feature_name = match line.find(gate_test_str) {
Some(i) => {
line[i+gate_test_str.len()..].splitn(2, ' ').next().unwrap()
Expand Down

0 comments on commit a5c86fe

Please sign in to comment.