From 236f55ed3c0717233065237952ccd678f14c61b3 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Mon, 29 Nov 2021 22:30:53 +0000 Subject: [PATCH] Change Header::default() impl so it's a valid one --- src/header.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/header.rs b/src/header.rs index 1ef95df..8bc6a71 100644 --- a/src/header.rs +++ b/src/header.rs @@ -14,8 +14,8 @@ impl Default for Header { fn default() -> Self { Self { magic: QOI_MAGIC, - width: 0, - height: 0, + width: 1, + height: 1, channels: 3, colorspace: ColorSpace::default(), }