From 5952a88e8c1752a08384d55612e0524d1a059b92 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Mon, 3 Jan 2022 17:14:13 +0300 Subject: [PATCH] Minor fixups to Pixel struct --- src/pixel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixel.rs b/src/pixel.rs index 0f8fe7b..f0b52ba 100644 --- a/src/pixel.rs +++ b/src/pixel.rs @@ -2,9 +2,9 @@ use crate::consts::{QOI_OP_DIFF, QOI_OP_LUMA, QOI_OP_RGB, QOI_OP_RGBA}; use crate::error::Result; use crate::utils::Writer; -#[derive(Copy, Clone, PartialEq, Eq)] +#[derive(Copy, Clone, PartialEq, Eq, Debug)] #[repr(transparent)] -pub struct Pixel(pub [u8; N]); +pub struct Pixel([u8; N]); impl Pixel { #[inline]