Skip to content

Commit 783a920

Browse files
committed
Remove needless return
1 parent eddaa72 commit 783a920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/matchers/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl<A: AsRef<str> + std::fmt::Debug, E: AsRef<str> + std::fmt::Debug> Matcher<A
3131
if let Ok(compiled_regex) = self.regex.as_ref().parse::<Regex>() {
3232
return compiled_regex.is_match(actual.as_ref());
3333
}
34-
return false;
34+
false
3535
}
3636

3737
fn failure_message(&self, actual: &A) -> String {

0 commit comments

Comments
 (0)