remove Default

This commit is contained in:
bendn 2023-09-06 13:56:15 +07:00
parent a8fe89c87a
commit 58a769292b
No known key found for this signature in database
GPG key ID: 0D9D3A2A3B2A93D6

View file

@ -85,16 +85,6 @@ pub struct Image<T, const CHANNELS: usize> {
height: NonZeroU32, height: NonZeroU32,
} }
impl<const CHANNELS: usize> Default for Image<&'static [u8], CHANNELS> {
fn default() -> Self {
Self {
buffer: &[0; CHANNELS],
width: NonZeroU32::new(1).unwrap(),
height: NonZeroU32::new(1).unwrap(),
}
}
}
impl<T, const CHANNELS: usize> Image<T, CHANNELS> { impl<T, const CHANNELS: usize> Image<T, CHANNELS> {
#[inline] #[inline]
/// get the height as a [`u32`] /// get the height as a [`u32`]