diff options
Diffstat (limited to 'lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs')
-rw-r--r-- | lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs b/lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs index 3123621a..c9b89fec 100644 --- a/lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs +++ b/lib/entry/libimagentryfilter/src/builtin/header/field_lt.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; @@ -69,9 +71,10 @@ impl FieldLt { } -impl Filter<Entry> for FieldLt { +impl FailableFilter<Entry> for FieldLt { + type Error = FE; - fn filter(&self, e: &Entry) -> bool { + fn filter(&self, e: &Entry) -> Result<bool> { self.filter.filter(e) } |