repo_path: use write!() macro to implement Debug

This commit is contained in:
Yuya Nishihara 2024-04-06 00:42:37 +09:00
parent 0b833ea9c0
commit 1134dc159e

View file

@ -173,7 +173,7 @@ pub struct RepoPath {
impl Debug for RepoPath { impl Debug for RepoPath {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
f.write_fmt(format_args!("{:?}", &self.value)) write!(f, "{:?}", &self.value)
} }
} }