diff options
Diffstat (limited to 'lib/entry/libimagentryfilter/src/builtin/header/field_istype.rs')
-rw-r--r-- | lib/entry/libimagentryfilter/src/builtin/header/field_istype.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/entry/libimagentryfilter/src/builtin/header/field_istype.rs b/lib/entry/libimagentryfilter/src/builtin/header/field_istype.rs index 453aaef2..a0968d37 100644 --- a/lib/entry/libimagentryfilter/src/builtin/header/field_istype.rs +++ b/lib/entry/libimagentryfilter/src/builtin/header/field_istype.rs @@ -22,7 +22,9 @@ use libimagstore::store::Entry; use builtin::header::field_path::FieldPath; use builtin::header::field_predicate::FieldPredicate; use builtin::header::field_predicate::Predicate; -use filters::filter::Filter; +use filters::failable::filter::FailableFilter; +use error::Result; +use error::FilterError as FE; use toml::Value; @@ -78,9 +80,10 @@ impl FieldIsType { } -impl Filter<Entry> for FieldIsType { +impl FailableFilter<Entry> for FieldIsType { + type Error = FE; - fn filter(&self, e: &Entry) -> bool { + fn filter(&self, e: &Entry) -> Result<bool> { self.filter.filter(e) } |