diff options
Diffstat (limited to 'src/options/get.rs')
-rw-r--r-- | src/options/get.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/options/get.rs b/src/options/get.rs index a09d1668..3258a103 100644 --- a/src/options/get.rs +++ b/src/options/get.rs @@ -75,7 +75,7 @@ pub trait GetOptionValue { Self: Into<OptionValue>, { if let Some(git_config) = git_config { - if let Some(value) = git_config.get::<Self>(&format!("delta.{}", option_name)) { + if let Some(value) = git_config.get::<Self>(&format!("delta.{option_name}")) { return Some(value); } } @@ -114,9 +114,7 @@ pub trait GetOptionValue { Self: Into<OptionValue>, { if let Some(git_config) = git_config { - if let Some(value) = - git_config.get::<Self>(&format!("delta.{}.{}", feature, option_name)) - { + if let Some(value) = git_config.get::<Self>(&format!("delta.{feature}.{option_name}")) { return Some(GitConfigValue(value.into())); } } |