From 947a7dddd6217345e586a5f04ec54eb94c6f3337 Mon Sep 17 00:00:00 2001 From: Ronuk Raval Date: Sun, 9 Jan 2022 14:25:04 -0500 Subject: [PATCH] cargo fmt --- src/main.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5de97edcdb..a1629bcffb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,9 +6,9 @@ use std::{ use anyhow::bail; use clap::{ - crate_authors, crate_description, crate_name, App, AppSettings, Arg, ArgGroup, ArgMatches, + crate_authors, crate_description, crate_name, crate_version, App, AppSettings, Arg, ArgGroup, + ArgMatches, }; -use clap::crate_version; use git_version::git_version; use verbosity::Verbosity; @@ -68,12 +68,7 @@ fn cli( .help("Git remote to sync against") }; - let host_arg = || { - Arg::new("host") - .short('H') - .long("host") - .takes_value(true) - }; + let host_arg = || Arg::new("host").short('H').long("host").takes_value(true); // This value is only conditionally used if `git_version!` cannot find any other version. let _fallback_version = crate_version!();