From a84a3b1fff6256a825ab82cd170c8aa76269d98d Mon Sep 17 00:00:00 2001 From: Gavin Thomas Claugus Date: Tue, 26 Jul 2016 16:41:13 -0400 Subject: [PATCH] libimagtimeui: Deny warnings and fix denied Signed-off-by: Gavin Thomas Claugus --- libimagtimeui/src/cli.rs | 2 +- libimagtimeui/src/lib.rs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libimagtimeui/src/cli.rs b/libimagtimeui/src/cli.rs index 86a69f5b..001c2a45 100644 --- a/libimagtimeui/src/cli.rs +++ b/libimagtimeui/src/cli.rs @@ -1,4 +1,4 @@ -use clap::{Arg, ArgMatches, App, SubCommand}; +use clap::Arg; pub fn build_datetime_cli_component<'a, 'b>() -> Arg<'a, 'b> { Arg::with_name(datetime_arg_name()) diff --git a/libimagtimeui/src/lib.rs b/libimagtimeui/src/lib.rs index 4486eef9..fa47a930 100644 --- a/libimagtimeui/src/lib.rs +++ b/libimagtimeui/src/lib.rs @@ -1,3 +1,17 @@ +#![deny( + non_camel_case_types, + non_snake_case, + path_statements, + trivial_numeric_casts, + unstable_features, + unused_allocation, + unused_import_braces, + unused_imports, + unused_mut, + unused_qualifications, + while_true, +)] + extern crate chrono; extern crate clap; extern crate regex;