From ea48a969455967c2fe9a1134b4d45171cb94940b Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 6 Dec 2020 12:02:22 +0100 Subject: [PATCH] Run cargo fmt --- src/app.rs | 11 +++++------ src/filter/size.rs | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app.rs b/src/app.rs index 685f184..6715598 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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!()) diff --git a/src/filter/size.rs b/src/filter/size.rs index 09714e7..d6eaf14 100644 --- a/src/filter/size.rs +++ b/src/filter/size.rs @@ -54,7 +54,7 @@ impl SizeFilter { "+" => Some(SizeFilter::Min(size)), "-" => Some(SizeFilter::Max(size)), "" => Some(SizeFilter::Equals(size)), - _ => None + _ => None, } }