diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-08-26 17:53:08 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-08-28 12:22:37 +0200 |
commit | c0c62bd1b5c5b9ece1d8289721dc8617987a7885 (patch) | |
tree | 34b1acf7872eb10db152c0c1a9bf96bf52027e4a /lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs | |
parent | 3024fefcb9d338919e0a3b5b1b90fb77d2313330 (diff) |
Change crates to use toml-query crate
Diffstat (limited to 'lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs')
-rw-r--r-- | lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs b/lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs index 0316bf82..7a3e8445 100644 --- a/lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs +++ b/lib/entry/libimagentryfilter/src/builtin/header/field_lt.rs @@ -32,17 +32,17 @@ struct EqLt { impl Predicate for EqLt { - fn evaluate(&self, v: Value) -> bool { + fn evaluate(&self, v: &Value) -> bool { match self.comp { Value::Integer(i) => { - match v { + match *v { Value::Integer(j) => i < j, Value::Float(f) => (i as f64) < f, _ => false, } }, Value::Float(f) => { - match v { + match *v { Value::Integer(i) => f < (i as f64), Value::Float(d) => f < d, _ => false, |