Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rraval committed Jan 9, 2022
1 parent b9f277c commit 947a7dd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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!();
Expand Down

0 comments on commit 947a7dd

Please sign in to comment.