summaryrefslogtreecommitdiffstats
path: root/core/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/window')
-rw-r--r--core/src/window/id.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/window/id.rs b/core/src/window/id.rs
index 1a75fa27..5d5a817e 100644
--- a/core/src/window/id.rs
+++ b/core/src/window/id.rs
@@ -1,5 +1,5 @@
+use std::fmt;
use std::hash::Hash;
-
use std::sync::atomic::{self, AtomicU64};
/// The id of the window.
@@ -14,3 +14,9 @@ impl Id {
Id(COUNT.fetch_add(1, atomic::Ordering::Relaxed))
}
}
+
+impl fmt::Display for Id {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+ self.0.fmt(f)
+ }
+}