removed CONFIG global from wildcard

This commit is contained in:
epi
2021-01-31 20:32:28 -06:00
parent a78c6c2d4a
commit 6caed557af
2 changed files with 2 additions and 5 deletions

View File

@@ -3,10 +3,7 @@ use std::any::Any;
use std::fmt::Debug;
use crate::ferox_response::FeroxResponse;
use crate::{
config::CONFIGURATION,
traits::{FeroxFilter, FeroxSerialize},
};
use crate::traits::{FeroxFilter, FeroxSerialize};
pub use self::container::FeroxFilters;
pub use self::lines::LinesFilter;

View File

@@ -53,7 +53,7 @@ impl FeroxFilter for WildcardFilter {
log::trace!("enter: should_filter_response({:?} {})", self, response);
// quick return if dont_filter is set
if CONFIGURATION.dont_filter {
if self.dont_filter {
// --dont-filter applies specifically to wildcard filters, it is not a 100% catch all
// for not filtering anything. As such, it should live in the implementation of
// a wildcard filter