Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 4, 2024
1 parent 6f8111c commit 4eb4575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winapps/src/config/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Expand All @@ -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()?;

Expand Down

0 comments on commit 4eb4575

Please sign in to comment.