Readability fixes for cargo clippy

This commit is contained in:
NG (Graham) committed 2025-09-03 22:33:32 -04:00
1 parent 9dcb12131b
commit 0e35aced01
77 files changed
+725 -735

No files matched your search

+2 -2
View File
@@ -137,8 +137,8 @@ impl literustlib::packet::PacketData for EventData {
use std::io::Write;
let mut buf = Vec::new();
buf.write_all(&(self.message_ty as i16).to_le_bytes()).unwrap();
buf.write_all(&(self.variant as i16).to_le_bytes()).unwrap();
buf.write_all(&(self.data_size as u16).to_le_bytes()).unwrap();
buf.write_all(&self.variant.to_le_bytes()).unwrap();
buf.write_all(&self.data_size.to_le_bytes()).unwrap();
buf.write_all(&self.data).unwrap();
buf.into()
}