(Clippy fixes across the board)
This commit is contained in:
parent
b315ea20a7
commit
637ac22a99
7 changed files with 61 additions and 69 deletions
|
|
@ -38,11 +38,12 @@ impl<'a> WriteBuf<'a> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn len(&self) -> usize {
|
||||
pub const fn len(&self) -> usize {
|
||||
self.buf.len()
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
fn qoi_encode_impl<const CHANNELS: usize>(
|
||||
out: &mut [u8], data: &[u8], width: u32, height: u32, colorspace: ColorSpace,
|
||||
) -> Result<usize>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue