mirror of
https://github.com/bend-n/fimg.git
synced 2025-01-04 23:38:21 -06:00
remove Default
This commit is contained in:
parent
a8fe89c87a
commit
58a769292b
10
src/lib.rs
10
src/lib.rs
|
@ -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`]
|
||||||
|
|
Loading…
Reference in a new issue