summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/packets.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/shared/src/packets.rs b/shared/src/packets.rs
index e339dd1..626da07 100644
--- a/shared/src/packets.rs
+++ b/shared/src/packets.rs
@@ -1,11 +1,11 @@
use anyhow::{Result, bail};
use glam::Vec3;
use std::{
- fmt::Display,
+ fmt::{Debug, Display},
io::{Read, Write},
};
-#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
+#[derive(Clone, Copy, PartialEq, Eq, Hash)]
pub struct Resource(pub [u8; 32]);
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Object(pub u128);
@@ -156,3 +156,9 @@ impl Display for Resource {
)
}
}
+
+impl Debug for Resource {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{}", self)
+ }
+}