Run cargo fmt

This commit is contained in:
sharkdp 2020-12-06 12:02:22 +01:00
parent f2fec45099
commit ea48a96945
2 changed files with 6 additions and 7 deletions

View file

@ -1,12 +1,11 @@
use clap::{crate_version, App, AppSettings, Arg};
pub fn build_app() -> App<'static, 'static> {
let clap_color_setting =
if std::env::var_os("NO_COLOR").is_none() {
AppSettings::ColoredHelp
} else {
AppSettings::ColorNever
};
let clap_color_setting = if std::env::var_os("NO_COLOR").is_none() {
AppSettings::ColoredHelp
} else {
AppSettings::ColorNever
};
let mut app = App::new("fd")
.version(crate_version!())

View file

@ -54,7 +54,7 @@ impl SizeFilter {
"+" => Some(SizeFilter::Min(size)),
"-" => Some(SizeFilter::Max(size)),
"" => Some(SizeFilter::Equals(size)),
_ => None
_ => None,
}
}