mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 08:34:07 +02:00
remove unneeded condition
This commit is contained in:
parent
b054ca2595
commit
b71925baad
1 changed files with 1 additions and 5 deletions
|
|
@ -533,11 +533,7 @@ where
|
|||
if E::is_le() {
|
||||
while byte_left > USIZE_SIZE - 1 {
|
||||
let raw = self.read_shifted_usize(read_pos, shift, false);
|
||||
let bytes = if E::is_le() {
|
||||
raw.to_le_bytes()
|
||||
} else {
|
||||
raw.to_be_bytes()
|
||||
};
|
||||
let bytes = raw.to_le_bytes();
|
||||
let read_bytes = USIZE_SIZE - 1;
|
||||
let usable_bytes = &bytes[0..read_bytes];
|
||||
data.extend_from_slice(usable_bytes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue