From f7438998c69fe585504fdec22e327eec625403c5 Mon Sep 17 00:00:00 2001 From: Inflation <2375962+inflation@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:16:34 +0800 Subject: [PATCH] fix: Update `bon` setting to keep from breaking change --- jpegxl-rs/src/decode.rs | 2 +- jpegxl-rs/src/encode.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jpegxl-rs/src/decode.rs b/jpegxl-rs/src/decode.rs index 88df729..cc464dc 100644 --- a/jpegxl-rs/src/decode.rs +++ b/jpegxl-rs/src/decode.rs @@ -159,7 +159,7 @@ impl<'pr, 'mm> JxlDecoder<'pr, 'mm> { /// /// # Errors /// Return [`DecodeError::CannotCreateDecoder`] if it fails to create the decoder. - #[builder] + #[builder(derive(Clone))] pub fn new( pixel_format: Option, skip_reorientation: Option, diff --git a/jpegxl-rs/src/encode.rs b/jpegxl-rs/src/encode.rs index 6c07b8e..c543ba0 100644 --- a/jpegxl-rs/src/encode.rs +++ b/jpegxl-rs/src/encode.rs @@ -133,7 +133,7 @@ impl<'prl, 'mm> JxlEncoder<'prl, 'mm> { /// /// # Errors /// Return [`EncodeError::CannotCreateEncoder`] if it fails to create the encoder - #[builder] + #[builder(derive(Clone))] pub fn new( memory_manager: Option<&'mm dyn MemoryManager>, #[builder(default)] has_alpha: bool,