mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-15 00:47:01 +05:30
chore: fix clippy 1.61 lints
This commit is contained in:
parent
eb3074d324
commit
c9f3c63b32
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue