Skip to content

Commit e583518

Browse files
committed
Update Rust
1 parent 38effb1 commit e583518

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ impl<'buf, T, const N: usize> OrderedPoolAllocator<'buf, T, N> {
205205
}
206206

207207
fn usize_to_bytes(block_index: usize) -> [u8; N] {
208-
if N == mem::size_of::<usize>() {
209-
unsafe { return *block_index.to_le_bytes().as_ptr().cast() }
210-
}
211-
212208
let mut buf = [0u8; N];
213209

214210
unsafe {

0 commit comments

Comments
 (0)