Skip to content

Commit

Permalink
clippy: Remediate warning (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
brycx authored Oct 24, 2024
1 parent e072154 commit 1ecf9c0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,13 @@ impl Iterator for TestCaseReader {
match current {
Some(Ok(mut string)) => {
// First check if a stop_flags are set and if we've encountered one.
match &self.stop_flags {
Some(flags) => {
for flag in flags.iter() {
if &string == flag {
self.stop_flag_hit = Some(flag.to_string());
return None;
}
if let Some(flags) = &self.stop_flags {
for flag in flags.iter() {
if &string == flag {
self.stop_flag_hit = Some(flag.to_string());
return None;
}
}
None => (),
}

// Test case fields are ordered, so this is the beginning of a test case
Expand Down

0 comments on commit 1ecf9c0

Please sign in to comment.