From 5a8721f63ccbd16f379435899eb3202695af290e Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 1 Mar 2023 19:19:54 +0100 Subject: [PATCH] Derive Debug for the editor state structs --- nih_plug_egui/src/lib.rs | 2 +- nih_plug_iced/src/lib.rs | 2 +- nih_plug_vizia/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nih_plug_egui/src/lib.rs b/nih_plug_egui/src/lib.rs index 3938a6c7..6d27290e 100644 --- a/nih_plug_egui/src/lib.rs +++ b/nih_plug_egui/src/lib.rs @@ -61,7 +61,7 @@ where } /// State for an `nih_plug_egui` editor. -#[derive(Serialize, Deserialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct EguiState { /// The window's size in logical pixels before applying `scale_factor`. #[serde(with = "nih_plug::params::persist::serialize_atomic_cell")] diff --git a/nih_plug_iced/src/lib.rs b/nih_plug_iced/src/lib.rs index 2b373664..e629d4f2 100644 --- a/nih_plug_iced/src/lib.rs +++ b/nih_plug_iced/src/lib.rs @@ -233,7 +233,7 @@ pub trait IcedEditor: 'static + Send + Sync + Sized { } /// State for an `nih_plug_iced` editor. -#[derive(Serialize, Deserialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct IcedState { /// The window's size in logical pixels before applying `scale_factor`. #[serde(with = "nih_plug::params::persist::serialize_atomic_cell")] diff --git a/nih_plug_vizia/src/lib.rs b/nih_plug_vizia/src/lib.rs index 6dd94bcf..28729668 100644 --- a/nih_plug_vizia/src/lib.rs +++ b/nih_plug_vizia/src/lib.rs @@ -83,7 +83,7 @@ pub enum ViziaTheming { /// State for an `nih_plug_vizia` editor. The scale factor can be manipulated at runtime by changing /// `cx.user_scale_factor`. -#[derive(Serialize, Deserialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct ViziaState { /// The window's size in logical pixels before applying `scale_factor`. #[serde(with = "nih_plug::params::persist::serialize_atomic_cell")]