From 827c6d5c83081f2ef439ffa614d6cbf280b44fdd Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Sat, 28 Sep 2024 22:59:30 +0200 Subject: [PATCH 1/4] add --- src/chunk.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chunk.rs b/src/chunk.rs index 2deb482..bb79c06 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -10,6 +10,7 @@ use super::*; /// able to write two things at the same time (which isn't possible with a /// single chunk because of the streaming nature --- only one writer can borrow /// it at a time). +#[derive(Debug, Clone, Eq, PartialEq)] pub struct Chunk { pub(crate) buf: Vec, pub(crate) offsets: Vec<(Ref, usize)>, From 2bb3b379f7a1dea9cd33cdadc5f6509def748a46 Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:21:13 +0200 Subject: [PATCH 2/4] add missing derive for OutputIntentSubtype --- src/color.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/color.rs b/src/color.rs index 3c354ad..3b650d7 100644 --- a/src/color.rs +++ b/src/color.rs @@ -1304,6 +1304,7 @@ impl OutputIntent<'_> { } /// The output intent subtype. +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] pub enum OutputIntentSubtype<'a> { /// `GTS_PDFX` PDFX, From 09ed93efd9ed42a1f7584a8b2762b0455691332a Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:22:06 +0200 Subject: [PATCH 3/4] remove debug from chunk --- src/chunk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chunk.rs b/src/chunk.rs index bb79c06..a951c7a 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -10,7 +10,7 @@ use super::*; /// able to write two things at the same time (which isn't possible with a /// single chunk because of the streaming nature --- only one writer can borrow /// it at a time). -#[derive(Debug, Clone, Eq, PartialEq)] +#[derive(Clone, Eq, PartialEq)] pub struct Chunk { pub(crate) buf: Vec, pub(crate) offsets: Vec<(Ref, usize)>, From 7c80e38e84ef37579d94c2b2544d1ef0a840f1dc Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl Date: Mon, 30 Sep 2024 12:23:38 +0200 Subject: [PATCH 4/4] Remove Eq and PartialEq --- src/chunk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chunk.rs b/src/chunk.rs index a951c7a..e1f22b6 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -10,7 +10,7 @@ use super::*; /// able to write two things at the same time (which isn't possible with a /// single chunk because of the streaming nature --- only one writer can borrow /// it at a time). -#[derive(Clone, Eq, PartialEq)] +#[derive(Clone)] pub struct Chunk { pub(crate) buf: Vec, pub(crate) offsets: Vec<(Ref, usize)>,