From 9620e81f59f8f9fe4d610c2b3cadd44ed834c131 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Aug 2019 10:27:39 +0200 Subject: [PATCH] [No-auto] lib/entry/filter: Fix Clippy warnings Signed-off-by: flip1995 Signed-off-by: Matthias Beyer --- .../src/builtin/header/field_isempty.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/entry/libimagentryfilter/src/builtin/header/field_isempty.rs b/lib/entry/libimagentryfilter/src/builtin/header/field_isempty.rs index f3378310..942761cb 100644 --- a/lib/entry/libimagentryfilter/src/builtin/header/field_isempty.rs +++ b/lib/entry/libimagentryfilter/src/builtin/header/field_isempty.rs @@ -51,13 +51,13 @@ impl FailableFilter 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))