From 709446821bfe53baf426be66878f966544c91442 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 8 Aug 2019 08:32:17 -0500 Subject: [PATCH] refactor(cli): Remove dead code --- src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7a7129c..e655e7b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,12 +67,6 @@ struct Args { verbose: clap_verbosity_flag::Verbosity, } -impl Args { - pub fn infer(self) -> Self { - self - } -} - #[derive(Debug, StructOpt)] #[structopt(rename_all = "kebab-case")] pub struct FileArgs { @@ -286,7 +280,7 @@ pub fn get_logging(level: log::Level) -> env_logger::Builder { } fn run() -> Result { - let args = Args::from_args().infer(); + let args = Args::from_args(); let mut builder = get_logging(args.verbose.log_level()); builder.init();