File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -367,13 +367,13 @@ impl Blocker {
367
367
return None ;
368
368
}
369
369
370
- let mut disabled_directives: HashSet < String > = HashSet :: new ( ) ;
371
- let mut enabled_directives: HashSet < String > = HashSet :: new ( ) ;
370
+ let mut disabled_directives: HashSet < & str > = HashSet :: new ( ) ;
371
+ let mut enabled_directives: HashSet < & str > = HashSet :: new ( ) ;
372
372
373
- for filter in filters {
373
+ for filter in filters. iter ( ) {
374
374
if filter. is_exception ( ) {
375
375
if filter. is_csp ( ) {
376
- if let Some ( csp_directive) = filter. modifier_option {
376
+ if let Some ( csp_directive) = & filter. modifier_option {
377
377
disabled_directives. insert ( csp_directive) ;
378
378
} else {
379
379
// Exception filters with empty `csp` options will disable all CSP
@@ -382,7 +382,7 @@ impl Blocker {
382
382
}
383
383
}
384
384
} else if filter. is_csp ( ) {
385
- if let Some ( csp_directive) = filter. modifier_option {
385
+ if let Some ( csp_directive) = & filter. modifier_option {
386
386
enabled_directives. insert ( csp_directive) ;
387
387
}
388
388
}
You can’t perform that action at this time.
0 commit comments