diff --git a/src/lib.rs b/src/lib.rs index 8f08b6b..1a9c203 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,7 +52,7 @@ const MAX_OSC_RAW: usize = 1024; /// /// Generic over the value for the size of the raw Operating System Command /// buffer. Only used when the `std` feature is not enabled. -#[derive(Default)] +#[derive(Debug, Default, Clone)] pub struct Parser { state: State, intermediates: [u8; MAX_INTERMEDIATES], diff --git a/src/params.rs b/src/params.rs index 967befb..ef9a7db 100644 --- a/src/params.rs +++ b/src/params.rs @@ -4,7 +4,7 @@ use core::fmt::{self, Debug, Formatter}; pub(crate) const MAX_PARAMS: usize = 32; -#[derive(Default)] +#[derive(Default, Clone)] pub struct Params { /// Number of subparameters for each parameter. ///