Skip to content

Commit

Permalink
use std::mem::size_of;
Browse files Browse the repository at this point in the history
  • Loading branch information
OmniacDev committed Nov 3, 2024
1 parent c44e3d8 commit fe83390
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/proto/src/compression.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use bedrockrs_proto_core::error::CompressionError;
use byteorder::{ReadBytesExt, WriteBytesExt};
use flate2::Compression as CompressionLevel;
Expand Down
1 change: 1 addition & 0 deletions crates/proto/src/version/v729/types/block_pos.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use std::io::Cursor;
Expand Down
1 change: 1 addition & 0 deletions crates/proto_core/src/types/bool.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use byteorder::{ReadBytesExt, WriteBytesExt};
use std::io::Cursor;

Expand Down
1 change: 1 addition & 0 deletions crates/proto_core/src/types/int.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use crate::endian::{ProtoCodecBE, ProtoCodecLE, ProtoCodecVAR};
use crate::error::ProtoCodecError;
use crate::ProtoCodec;
Expand Down
1 change: 1 addition & 0 deletions crates/proto_core/src/types/option.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use crate::endian::{ProtoCodecBE, ProtoCodecLE, ProtoCodecVAR};
use crate::error::ProtoCodecError;
use crate::ProtoCodec;
Expand Down
1 change: 1 addition & 0 deletions crates/proto_core/src/types/uuid.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use crate::error::ProtoCodecError;
use crate::ProtoCodec;
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
Expand Down
1 change: 1 addition & 0 deletions crates/proto_core/src/types/xuid.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use crate::error::ProtoCodecError;
use crate::ProtoCodec;
use std::io::Cursor;
Expand Down
1 change: 1 addition & 0 deletions crates/shared/src/actor_runtime_id.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use std::io::Cursor;
Expand Down
1 change: 1 addition & 0 deletions crates/shared/src/actor_unique_id.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::mem::size_of;
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use std::io::Cursor;
Expand Down

0 comments on commit fe83390

Please sign in to comment.