mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Readability fixes for cargo clippy
This commit is contained in:
1 parent
9dcb12131b
commit
0e35aced01
77 files changed
+725
-735
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user