diff options
Diffstat (limited to 'lib/entry/libimagentryfilter/src/builtin/header/field_predicate.rs')
-rw-r--r-- | lib/entry/libimagentryfilter/src/builtin/header/field_predicate.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/entry/libimagentryfilter/src/builtin/header/field_predicate.rs b/lib/entry/libimagentryfilter/src/builtin/header/field_predicate.rs index 5a7dbb9b..520ec5c1 100644 --- a/lib/entry/libimagentryfilter/src/builtin/header/field_predicate.rs +++ b/lib/entry/libimagentryfilter/src/builtin/header/field_predicate.rs @@ -24,8 +24,9 @@ use toml::Value; use builtin::header::field_path::FieldPath; use filters::failable::filter::FailableFilter; -use error::Result; -use error::FilterError as FE; + +use failure::Fallible as Result; +use failure::Error; pub trait Predicate { fn evaluate(&self, &Value) -> bool; @@ -53,7 +54,7 @@ impl<P: Predicate> FieldPredicate<P> { } impl<P: Predicate> FailableFilter<Entry> for FieldPredicate<P> { - type Error = FE; + type Error = Error; fn filter(&self, e: &Entry) -> Result<bool> { Ok(e.get_header() |