Skip to content

Commit

Permalink
refactor(cli): Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 8, 2019
1 parent 8ea31b5 commit 7094468
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -286,7 +280,7 @@ pub fn get_logging(level: log::Level) -> env_logger::Builder {
}

fn run() -> Result<i32, failure::Error> {
let args = Args::from_args().infer();
let args = Args::from_args();

let mut builder = get_logging(args.verbose.log_level());
builder.init();
Expand Down

0 comments on commit 7094468

Please sign in to comment.