Bump rust deps

This commit is contained in:
Andras Schmelczer 2025-04-04 21:58:05 +01:00
parent 0e53631cc8
commit 3881f56b45
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
6 changed files with 81 additions and 36 deletions

View file

@ -26,16 +26,16 @@ impl Config {
pub async fn read_or_create(path: &Path) -> Result<Self> {
if path.exists() {
info!(
"Loading configuration from {:?}",
path.canonicalize().unwrap()
"Loading configuration from '{}'",
path.canonicalize().unwrap().display()
);
Self::load_from_file(path).await
} else {
let config = Self::default();
config.write(path).await?;
warn!(
"Configuration file not found, wrote default configuration to {:?}",
path.canonicalize().unwrap()
"Configuration file not found, wrote default configuration to '{}'",
path.canonicalize().unwrap().display()
);
Ok(config)
}