[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:
parent
36957917b2
commit
9620e81f59
1 changed files with 7 additions and 7 deletions
|
@ -51,13 +51,13 @@ impl FailableFilter<Entry> for FieldIsEmpty {
|
||||||
.read(&self.header_field_path[..])?
|
.read(&self.header_field_path[..])?
|
||||||
.map(|v| {
|
.map(|v| {
|
||||||
match v {
|
match v {
|
||||||
&Value::Array(ref a) => a.is_empty(),
|
Value::Array(ref a) => a.is_empty(),
|
||||||
&Value::String(ref s) => s.is_empty(),
|
Value::String(ref s) => s.is_empty(),
|
||||||
&Value::Table(ref t) => t.is_empty(),
|
Value::Table(ref t) => t.is_empty(),
|
||||||
&Value::Boolean(_) |
|
Value::Boolean(_) |
|
||||||
&Value::Float(_) |
|
Value::Float(_) |
|
||||||
&Value::Datetime(_) |
|
Value::Datetime(_) |
|
||||||
&Value::Integer(_) => false,
|
Value::Integer(_) => false,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.unwrap_or(true))
|
.unwrap_or(true))
|
||||||
|
|
Loading…
Reference in a new issue