Skip to content

Commit

Permalink
Fix raw_line in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m committed Apr 4, 2022
1 parent cc061d0 commit ae63ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl FilterSet {
let mut filters_used = vec![];

self.network_filters.into_iter().for_each(|filter| {
let original_rule = filter.raw_line.clone().expect("All rules should be in debug mode");
let original_rule = *filter.raw_line.clone().expect("All rules should be in debug mode");
if let Ok(equivalent) = TryInto::<content_blocking::CbRuleEquivalent>::try_into(filter) {
filters_used.push(original_rule);
equivalent.into_iter().for_each(|cb_rule| {
Expand All @@ -179,7 +179,7 @@ impl FilterSet {
let add_fp_document_exception = !filters_used.is_empty();

self.cosmetic_filters.into_iter().for_each(|filter| {
let original_rule = filter.raw_line.clone().expect("All rules should be in debug mode");
let original_rule = *filter.raw_line.clone().expect("All rules should be in debug mode");
if let Ok(cb_rule) = TryInto::<content_blocking::CbRule>::try_into(filter) {
filters_used.push(original_rule);
match &cb_rule.action.typ {
Expand Down

0 comments on commit ae63ba4

Please sign in to comment.