Skip to content

Commit

Permalink
refactor: improved code, removed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
m62624 committed Sep 9, 2023
1 parent 12dfa6c commit 858c4c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flexible_inspect_rs/src/rules/rule_bytes/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ impl SimpleRulesBytes {
let rgxst = regex::bytes::RegexSet::new(
&smr_must_be_found
.iter()
.chain(smr_must_not_be_found_with_subrules.iter())
.chain(smr_must_not_be_found_without_subrules.iter())
.chain(&smr_must_not_be_found_with_subrules)
.chain(&smr_must_not_be_found_without_subrules)
.collect::<Vec<_>>(),
)
.unwrap();
Expand Down
4 changes: 2 additions & 2 deletions flexible_inspect_rs/src/rules/rule_str/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ impl SimpleRules {
let rgxst = regex::RegexSet::new(
&smr_must_be_found
.iter()
.chain(smr_must_not_be_found_with_subrules.iter())
.chain(smr_must_not_be_found_without_subrules.iter())
.chain(&smr_must_not_be_found_with_subrules)
.chain(&smr_must_not_be_found_without_subrules)
.collect::<Vec<_>>(),
)
.unwrap();
Expand Down

0 comments on commit 858c4c0

Please sign in to comment.