Skip to content

Commit

Permalink
use core instead of std
Browse files Browse the repository at this point in the history
  • Loading branch information
KillingSpark committed Apr 18, 2024
1 parent 2ee37fd commit 88f7a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decoding/ringbuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ unsafe fn copy_bytes_overshooting(
#[cfg(target_feature = "sse2")]
type CopyType = u128;

const COPY_AT_ONCE_SIZE: usize = std::mem::size_of::<CopyType>();
const COPY_AT_ONCE_SIZE: usize = core::mem::size_of::<CopyType>();
let min_buffer_size = usize::min(src.1, dst.1);

// Can copy in just one read+write, very common case
Expand Down

0 comments on commit 88f7a41

Please sign in to comment.