chore: fix clippy 1.61 lints

This commit is contained in:
Harsh Shandilya 2022-02-25 00:16:09 +05:30
parent eb3074d324
commit c9f3c63b32
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 6 additions and 6 deletions

View file

@ -72,7 +72,7 @@ impl Match for Matcher<'_> {
Matcher::EndsWith { suffix } => string.ends_with(suffix),
Matcher::Contains { substring } => string.contains(substring),
Matcher::Regex { pattern } => {
return if let Ok(regex) = Regex::from_str(pattern) {
if let Ok(regex) = Regex::from_str(pattern) {
regex.is_match(string)
} else {
false