Skip to content

Commit 617de0c

Browse files
committed
clippy fix
1 parent 00420f9 commit 617de0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/alerts/rule.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ pub mod base {
369369
.contains(&self.value.to_ascii_lowercase()),
370370
StringOperator::Regex => {
371371
let re: Regex = regex::Regex::new(&self.value).unwrap();
372-
re.is_match(&string)
372+
re.is_match(string)
373373
}
374374
}
375375
} else {
@@ -380,7 +380,7 @@ pub mod base {
380380
StringOperator::NotContains => !string.contains(&self.value),
381381
StringOperator::Regex => {
382382
let re: Regex = regex::Regex::new(&self.value).unwrap();
383-
re.is_match(&string)
383+
re.is_match(string)
384384
}
385385
}
386386
};

0 commit comments

Comments
 (0)