Skip to content

Commit 141747e

Browse files
author
Gal Ben David
committed
fix cargo clippy linting errors
1 parent b7f5753 commit 141747e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl RulesManager {
6464

6565
let mut whitelist_regexes = Vec::new();
6666
for whitelist_pattern in whitelist_patterns.iter() {
67-
let whitelist_regex = match Regex::new(&whitelist_pattern) {
67+
let whitelist_regex = match Regex::new(whitelist_pattern) {
6868
Ok(whitelist_regex) => whitelist_regex,
6969
Err(error) => {
7070
return Err(
@@ -86,7 +86,7 @@ impl RulesManager {
8686

8787
let mut blacklist_regexes = Vec::new();
8888
for blacklist_pattern in blacklist_patterns.iter() {
89-
let blacklist_regex = match Regex::new(&blacklist_pattern) {
89+
let blacklist_regex = match Regex::new(blacklist_pattern) {
9090
Ok(blacklist_regex) => blacklist_regex,
9191
Err(error) => {
9292
return Err(

0 commit comments

Comments
 (0)