From c121d94f0b27bc04ffbdca55cd0939c1401d5a2e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 27 Jan 2025 15:26:00 +0100 Subject: clippy: fixes and ignores --- shared/src/packets.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shared/src/packets.rs') 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); +} -- cgit v1.2.3-70-g09d2