From 1e8b7a1105b4385e3b65365969d524acd696c61c Mon Sep 17 00:00:00 2001 From: Karcsesz Date: Sun, 17 Mar 2024 21:27:41 +0100 Subject: [PATCH] `+ Debug` is unneeded here since `Path` already implements Debug --- src/schema/resource_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schema/resource_list.rs b/src/schema/resource_list.rs index 6068c2a..28b949e 100644 --- a/src/schema/resource_list.rs +++ b/src/schema/resource_list.rs @@ -47,7 +47,7 @@ impl ResourceList { } #[instrument(level = "debug", skip(path, self))] - pub fn save(&self, path: impl AsRef + Debug) -> Result<(), ResourceSaveError> { + pub fn save(&self, path: impl AsRef) -> Result<(), ResourceSaveError> { info!("Creating backup before writing..."); let path = path.as_ref(); std::fs::rename(path, path.with_extension("bak"))