From 7fb4398c04321019228422bf0facfbaaaba2abc2 Mon Sep 17 00:00:00 2001 From: Spyros Roum Date: Tue, 19 Oct 2021 19:56:27 +0300 Subject: [PATCH] Remove redundant code --- src/cli.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index ed880ae..7780b33 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,17 +1,16 @@ //! CLI arg parser configuration, command detection and input treatment. use std::{ - env, path::{Path, PathBuf}, vec::Vec, }; -use clap::{crate_authors, crate_description, crate_name, crate_version, Parser, ValueHint}; +use clap::{Parser, ValueHint}; use crate::Error; #[derive(Parser, Debug)] -#[clap(name = crate_name!(), version = crate_version!(), author = crate_authors!(), about = crate_description!())] +#[clap(version, author, about)] pub struct Opts { /// Skip overwrite questions positively. #[clap(short, long, conflicts_with = "no")]