diff --git a/src/flags/color.rs b/src/flags/color.rs index f3b97c027..95c66e6b2 100644 --- a/src/flags/color.rs +++ b/src/flags/color.rs @@ -84,8 +84,7 @@ impl Configurable for ColorOption { return Some(Self::Never); } - config.color.as_ref() - .map(|color| color.when) + config.color.as_ref().map(|color| color.when) } fn from_environment() -> Option { diff --git a/src/flags/dereference.rs b/src/flags/dereference.rs index 9a045d1b8..8c87ef905 100644 --- a/src/flags/dereference.rs +++ b/src/flags/dereference.rs @@ -29,8 +29,7 @@ impl Configurable for Dereference { /// If the `Config::dereference` has value, this returns its value /// as the value of the `Dereference`, in a [Some], Otherwise this returns [None]. fn from_config(config: &Config) -> Option { - config.dereference.as_ref() - .map(|deref| Self(*deref)) + config.dereference.as_ref().map(|deref| Self(*deref)) } } diff --git a/src/flags/indicators.rs b/src/flags/indicators.rs index f42817d3c..21df61777 100644 --- a/src/flags/indicators.rs +++ b/src/flags/indicators.rs @@ -30,8 +30,7 @@ impl Configurable for Indicators { /// this returns its value as the value of the `Indicators`, in a [Some]. /// Otherwise this returns [None]. fn from_config(config: &Config) -> Option { - config.indicators.as_ref() - .map(|ind| Self(*ind)) + config.indicators.as_ref().map(|ind| Self(*ind)) } } diff --git a/src/flags/symlink_arrow.rs b/src/flags/symlink_arrow.rs index 2381a54ca..41d3a2b3a 100644 --- a/src/flags/symlink_arrow.rs +++ b/src/flags/symlink_arrow.rs @@ -21,7 +21,9 @@ impl Configurable for SymlinkArrow { /// returns its value as the value of the `SymlinkArrow`, in a [Some]. /// Otherwise this returns [None]. fn from_config(config: &Config) -> Option { - config.symlink_arrow.as_ref() + config + .symlink_arrow + .as_ref() .map(|arrow| SymlinkArrow(arrow.to_string())) } } diff --git a/src/meta/symlink.rs b/src/meta/symlink.rs index 2fcb6ab37..d7fd340a7 100644 --- a/src/meta/symlink.rs +++ b/src/meta/symlink.rs @@ -45,8 +45,7 @@ impl<'a> From<&'a Path> for SymLink { impl SymLink { pub fn symlink_string(&self) -> Option { - self.target.as_ref() - .map(|target| target.to_string()) + self.target.as_ref().map(|target| target.to_string()) } pub fn render(&self, colors: &Colors, flag: &Flags) -> ColoredString {