diff options
Diffstat (limited to 'lib/entry/libimagentryfilter/src/builtin/header/field_grep.rs')
-rw-r--r-- | lib/entry/libimagentryfilter/src/builtin/header/field_grep.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/entry/libimagentryfilter/src/builtin/header/field_grep.rs b/lib/entry/libimagentryfilter/src/builtin/header/field_grep.rs index 5367eee8..6734bac5 100644 --- a/lib/entry/libimagentryfilter/src/builtin/header/field_grep.rs +++ b/lib/entry/libimagentryfilter/src/builtin/header/field_grep.rs @@ -26,8 +26,9 @@ use builtin::header::field_path::FieldPath; use builtin::header::field_predicate::FieldPredicate; use builtin::header::field_predicate::Predicate; use filters::failable::filter::FailableFilter; -use error::Result; -use error::FilterError as FE; + +use failure::Fallible as Result; +use failure::Error; struct EqGrep{ regex: Regex @@ -60,7 +61,7 @@ impl FieldGrep { } impl FailableFilter<Entry> for FieldGrep { - type Error = FE; + type Error = Error; fn filter(&self, e: &Entry) -> Result<bool> { self.filter.filter(e) |