fix: formatting

This commit is contained in:
objz committed 2026-07-11 15:46:15 +02:00
1 parent 6f5722aa02
commit b94957a952
6 files changed
+87 -54

No files matched your search

+8 -7
View File
@@ -23,13 +23,14 @@ fn ensure_config_exists() -> PathBuf {
let config_path = get_config_path().join("config.toml");
if !config_path.exists() {
if let Some(parent) = config_path.parent()
&& let Err(e) = fs::create_dir_all(parent) {
tracing::warn!(
"Failed to create config directory {}: {}",
parent.display(),
e
);
}
&& let Err(e) = fs::create_dir_all(parent)
{
tracing::warn!(
"Failed to create config directory {}: {}",
parent.display(),
e
);
}
match fs::write(&config_path, include_str!("../../assets/config.toml")) {
Ok(()) => tracing::debug!("Wrote default config to {}", config_path.display()),
Err(e) => tracing::warn!(