From 979a9bf83a7e8890cbc05850bca53c57c3c380dd Mon Sep 17 00:00:00 2001 From: Maxim Zhiburt Date: Sun, 3 Aug 2025 00:11:36 +0300 Subject: [PATCH] Add Clone+Debug derives to vte::Parser --- src/lib.rs | 2 +- src/params.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. ///