From 04b59e789f2ea8618426bd3fea5dcb8861216b0b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Apr 2016 20:50:54 +0200 Subject: [PATCH 1/2] Remove unused import --- libimagentryfilter/src/builtin/header/version/eq.rs | 1 - libimagentryfilter/src/builtin/header/version/gt.rs | 1 - libimagentryfilter/src/builtin/header/version/lt.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/libimagentryfilter/src/builtin/header/version/eq.rs b/libimagentryfilter/src/builtin/header/version/eq.rs index f2be5a28..0e28cfb2 100644 --- a/libimagentryfilter/src/builtin/header/version/eq.rs +++ b/libimagentryfilter/src/builtin/header/version/eq.rs @@ -3,7 +3,6 @@ use toml::Value; use libimagstore::store::Entry; -use builtin::header::field_path::FieldPath; use filter::Filter; pub struct VersionEq { diff --git a/libimagentryfilter/src/builtin/header/version/gt.rs b/libimagentryfilter/src/builtin/header/version/gt.rs index 69f5da67..119e64a8 100644 --- a/libimagentryfilter/src/builtin/header/version/gt.rs +++ b/libimagentryfilter/src/builtin/header/version/gt.rs @@ -3,7 +3,6 @@ use toml::Value; use libimagstore::store::Entry; -use builtin::header::field_path::FieldPath; use filter::Filter; pub struct VersionGt { diff --git a/libimagentryfilter/src/builtin/header/version/lt.rs b/libimagentryfilter/src/builtin/header/version/lt.rs index fd815475..6263f6de 100644 --- a/libimagentryfilter/src/builtin/header/version/lt.rs +++ b/libimagentryfilter/src/builtin/header/version/lt.rs @@ -3,7 +3,6 @@ use toml::Value; use libimagstore::store::Entry; -use builtin::header::field_path::FieldPath; use filter::Filter; pub struct VersionLt { From d0271576bb3aac8b155e2ce4770a207d87c4a9dd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Apr 2016 20:50:59 +0200 Subject: [PATCH 2/2] Enable lints --- libimagentryfilter/src/lib.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libimagentryfilter/src/lib.rs b/libimagentryfilter/src/lib.rs index f45c41e4..e76d3a32 100644 --- a/libimagentryfilter/src/lib.rs +++ b/libimagentryfilter/src/lib.rs @@ -1,3 +1,18 @@ +#![deny( + non_camel_case_types, + non_snake_case, + path_statements, + trivial_numeric_casts, + unstable_features, + unused_allocation, + unused_import_braces, + unused_imports, + unused_must_use, + unused_mut, + unused_qualifications, + while_true, +)] + #[macro_use] extern crate log; extern crate itertools;