Skip to content

Commit

Permalink
Appeased clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Dec 13, 2022
1 parent 5ddac9b commit 6855c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl CompleteConfig {
file.write_all(default_toml_string.as_bytes()).unwrap();

bail!("Configuration was generated at {path_str}, please fill it out with necessary information.")
} else if let Ok(config_contents) = read_to_string(&p) {
} else if let Ok(config_contents) = read_to_string(p) {
let config: Self = toml::from_str(config_contents.as_str()).unwrap();

// Remember to check for any important missing config items here!
Expand Down

0 comments on commit 6855c64

Please sign in to comment.