diff options
| author | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-06-20 23:17:42 +0330 |
|---|---|---|
| committer | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-06-20 23:17:42 +0330 |
| commit | 10aba11b29a33c39e4767534db736ff942ecd8a8 (patch) | |
| tree | d1e83eedf8a370a8b1f553c4f57f14a038df9ac6 | |
| parent | 7ebe7ac9080a5c071074d7f858b86ed08228bc70 (diff) | |
| download | rust-10aba11b29a33c39e4767534db736ff942ecd8a8.tar.gz rust-10aba11b29a33c39e4767534db736ff942ecd8a8.zip | |
Fix VfsPath Display and Debug impls
| -rw-r--r-- | crates/vfs/src/vfs_path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/vfs/src/vfs_path.rs b/crates/vfs/src/vfs_path.rs index f9248feb34a..f88881488a6 100644 --- a/crates/vfs/src/vfs_path.rs +++ b/crates/vfs/src/vfs_path.rs @@ -292,7 +292,7 @@ impl From<AbsPathBuf> for VfsPath { impl fmt::Display for VfsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match &self.0 { - VfsPathRepr::PathBuf(it) => fmt::Debug::fmt(&it, f), + VfsPathRepr::PathBuf(it) => fmt::Display::fmt(&it, f), VfsPathRepr::VirtualPath(VirtualPath(it)) => fmt::Display::fmt(it, f), } } @@ -307,7 +307,7 @@ impl fmt::Debug for VfsPath { impl fmt::Debug for VfsPathRepr { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match &self { - VfsPathRepr::PathBuf(it) => fmt::Display::fmt(&it, f), + VfsPathRepr::PathBuf(it) => fmt::Debug::fmt(&it, f), VfsPathRepr::VirtualPath(VirtualPath(it)) => fmt::Debug::fmt(&it, f), } } |
