From 58a769292b3b3482a111009d4050e4986378dd27 Mon Sep 17 00:00:00 2001 From: bendn Date: Wed, 6 Sep 2023 13:56:15 +0700 Subject: [PATCH] remove Default --- src/lib.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 725945d..f0a7dc7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,16 +85,6 @@ pub struct Image { height: NonZeroU32, } -impl Default for Image<&'static [u8], CHANNELS> { - fn default() -> Self { - Self { - buffer: &[0; CHANNELS], - width: NonZeroU32::new(1).unwrap(), - height: NonZeroU32::new(1).unwrap(), - } - } -} - impl Image { #[inline] /// get the height as a [`u32`]