From 1134dc159e1b071f455eff864f88c10a3f3c46a5 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sat, 6 Apr 2024 00:42:37 +0900 Subject: [PATCH] repo_path: use write!() macro to implement Debug --- lib/src/repo_path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/repo_path.rs b/lib/src/repo_path.rs index 82ba63e0a..68abae74d 100644 --- a/lib/src/repo_path.rs +++ b/lib/src/repo_path.rs @@ -173,7 +173,7 @@ pub struct RepoPath { impl Debug for RepoPath { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { - f.write_fmt(format_args!("{:?}", &self.value)) + write!(f, "{:?}", &self.value) } }