clean PR warnings

This commit is contained in:
ManyTheFish 2023-10-10 11:23:16 +02:00 committed by Louis Dureuil
parent 66c2c82a18
commit 1c5705c164
No known key found for this signature in database
11 changed files with 11 additions and 103 deletions

View file

@ -44,6 +44,7 @@ where
Some((head, tail))
}
#[allow(unused)]
pub fn read_u32_ne_bytes(bytes: &[u8]) -> impl Iterator<Item = u32> + '_ {
bytes.chunks_exact(4).flat_map(TryInto::try_into).map(u32::from_ne_bytes)
}