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,