diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-27 15:26:00 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-27 15:26:00 +0100 |
commit | c121d94f0b27bc04ffbdca55cd0939c1401d5a2e (patch) | |
tree | 67ac9da1f994c24b9a3e8e8d2adc2e334d2e34a5 /shared/src/packets.rs | |
parent | 6b5c44d58e6c6d3df360396a0897290fc603699b (diff) | |
download | weareserver-c121d94f0b27bc04ffbdca55cd0939c1401d5a2e.tar weareserver-c121d94f0b27bc04ffbdca55cd0939c1401d5a2e.tar.bz2 weareserver-c121d94f0b27bc04ffbdca55cd0939c1401d5a2e.tar.zst |
clippy: fixes and ignores
Diffstat (limited to 'shared/src/packets.rs')
-rw-r--r-- | shared/src/packets.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/src/packets.rs b/shared/src/packets.rs index a5c017d..dad09ce 100644 --- a/shared/src/packets.rs +++ b/shared/src/packets.rs @@ -72,6 +72,11 @@ impl Object { Self(rand::random()) } } +impl Default for Object { + fn default() -> Self { + Self::new() + } +} impl Packet { fn serialize_inner(&self, w: &mut impl Write) -> Result<()> { match self { @@ -222,3 +227,6 @@ impl Display for Object { .finish() } } +impl Object { + pub const ROOT: Object = Object(0); +} |