From 07cef951d7de04316f50555ce3da916fd6488964 Mon Sep 17 00:00:00 2001 From: Jacob Halsey Date: Mon, 8 Apr 2024 23:36:47 +0100 Subject: [PATCH] Fix clippy --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 86e8f82..586eb35 100644 --- a/src/config.rs +++ b/src/config.rs @@ -78,7 +78,7 @@ pub struct BrightnessValues { impl SsbConfig { pub fn load(path_override: Option) -> anyhow::Result> { - let path = path_override.unwrap_or_else(|| get_default_config_path()); + let path = path_override.unwrap_or_else(get_default_config_path); if !path.exists() { return Ok(None); }