[No-auto] lib/entry/filter: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:27:39 +02:00 committed by Matthias Beyer
parent 36957917b2
commit 9620e81f59

View file

@ -51,13 +51,13 @@ impl FailableFilter<Entry> for FieldIsEmpty {
.read(&self.header_field_path[..])?
.map(|v| {
match v {
&Value::Array(ref a) => a.is_empty(),
&Value::String(ref s) => s.is_empty(),
&Value::Table(ref t) => t.is_empty(),
&Value::Boolean(_) |
&Value::Float(_) |
&Value::Datetime(_) |
&Value::Integer(_) => false,
Value::Array(ref a) => a.is_empty(),
Value::String(ref s) => s.is_empty(),
Value::Table(ref t) => t.is_empty(),
Value::Boolean(_) |
Value::Float(_) |
Value::Datetime(_) |
Value::Integer(_) => false,
}
})
.unwrap_or(true))