aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-view/src/lib.rs b/helix-view/src/lib.rs
index a56c914d..e0964e1c 100644
--- a/helix-view/src/lib.rs
+++ b/helix-view/src/lib.rs
@@ -26,6 +26,12 @@ impl Default for DocumentId {
}
}
+impl std::fmt::Display for DocumentId {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_fmt(format_args!("{}", self.0))
+ }
+}
+
slotmap::new_key_type! {
pub struct ViewId;
}