From 20c78a99e426f668e56b0d349352e93831a33f6a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Apr 2016 20:53:06 +0200 Subject: [PATCH 1/2] Remove unused imports --- libimagentrylist/src/lister.rs | 2 -- libimagentrylist/src/listers/line.rs | 2 -- libimagentrylist/src/listers/path.rs | 2 -- 3 files changed, 6 deletions(-) diff --git a/libimagentrylist/src/lister.rs b/libimagentrylist/src/lister.rs index 2913a7a6..80f86110 100644 --- a/libimagentrylist/src/lister.rs +++ b/libimagentrylist/src/lister.rs @@ -1,5 +1,3 @@ -use clap::ArgMatches; - use libimagstore::store::FileLockEntry; use result::Result; diff --git a/libimagentrylist/src/listers/line.rs b/libimagentrylist/src/listers/line.rs index 04220e34..1b233dc0 100644 --- a/libimagentrylist/src/listers/line.rs +++ b/libimagentrylist/src/listers/line.rs @@ -1,11 +1,9 @@ use std::io::stdout; use std::io::Write; -use cli::list_subcommand_name; use lister::Lister; use result::Result; -use clap::ArgMatches; use libimagstore::store::FileLockEntry; pub struct LineLister<'a> { diff --git a/libimagentrylist/src/listers/path.rs b/libimagentrylist/src/listers/path.rs index 5e9d82b5..285802e2 100644 --- a/libimagentrylist/src/listers/path.rs +++ b/libimagentrylist/src/listers/path.rs @@ -2,11 +2,9 @@ use std::io::stdout; use std::io::Write; use std::ops::Deref; -use cli::list_subcommand_name; use lister::Lister; use result::Result; -use clap::ArgMatches; use libimagstore::store::FileLockEntry; pub struct PathLister { From 6177ac9dad61f34cfc3718439e43234d8a8a8fc2 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Apr 2016 20:53:10 +0200 Subject: [PATCH 2/2] Enable lints --- libimagentrylist/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libimagentrylist/src/lib.rs b/libimagentrylist/src/lib.rs index e42eb98d..b364e4d9 100644 --- a/libimagentrylist/src/lib.rs +++ b/libimagentrylist/src/lib.rs @@ -1,3 +1,19 @@ +#![deny( + dead_code, + 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, +)] + extern crate clap; #[macro_use] extern crate log; extern crate toml;