+ Debug
is unneeded here since Path
already implements Debug
This commit is contained in:
parent
49a843f853
commit
1e8b7a1105
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ impl ResourceList {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(level = "debug", skip(path, self))]
|
#[instrument(level = "debug", skip(path, self))]
|
||||||
pub fn save(&self, path: impl AsRef<Path> + Debug) -> Result<(), ResourceSaveError> {
|
pub fn save(&self, path: impl AsRef<Path>) -> Result<(), ResourceSaveError> {
|
||||||
info!("Creating backup before writing...");
|
info!("Creating backup before writing...");
|
||||||
let path = path.as_ref();
|
let path = path.as_ref();
|
||||||
std::fs::rename(path, path.with_extension("bak"))
|
std::fs::rename(path, path.with_extension("bak"))
|
||||||
|
|
Loading…
Reference in a new issue