+ Debug is unneeded here since Path already implements Debug

This commit is contained in:
Karcsesz 2024-03-17 21:27:41 +01:00
parent 49a843f853
commit 1e8b7a1105

View file

@ -47,7 +47,7 @@ impl ResourceList {
}
#[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...");
let path = path.as_ref();
std::fs::rename(path, path.with_extension("bak"))