From 4eb45755e263b2f5d9a68947101921021006f58b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 19:33:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- winapps/src/config/operations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winapps/src/config/operations.rs b/winapps/src/config/operations.rs index 77f20c3..7a427f0 100644 --- a/winapps/src/config/operations.rs +++ b/winapps/src/config/operations.rs @@ -34,7 +34,7 @@ impl Config { _ => "Could not find $XDG_CONFIG_HOME and no config path specified".into_result(), } .map(|path| path.join("winapps").join("config.toml"))?; - + let parent = path.parent().unwrap(); path_ok(parent)?; @@ -47,7 +47,7 @@ impl Config { if !config_path.exists() { return self.save(path); } - + let config_file = fs::read_to_string(config_path).into_result()?; let config: Self = toml::from_str(config_file.as_str()).into_result()?;