From 4a5024d816672c26aa1353e182c5bf79d72e9cd8 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 31 Aug 2023 13:57:57 -0700 Subject: [PATCH] cosmic_comp_config: Some trait implementations and re-exports --- cosmic-comp-config/src/input.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cosmic-comp-config/src/input.rs b/cosmic-comp-config/src/input.rs index 1d15abb0..b51063e4 100644 --- a/cosmic-comp-config/src/input.rs +++ b/cosmic-comp-config/src/input.rs @@ -2,10 +2,10 @@ #![allow(non_snake_case)] -use input::{AccelProfile, ClickMethod, ScrollMethod, TapButtonMap}; +pub use input::{AccelProfile, ClickMethod, ScrollMethod, TapButtonMap}; use serde::{Deserialize, Serialize}; -#[derive(Debug, Default, Deserialize, Serialize)] +#[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct InputConfig { pub state: DeviceState, #[serde(skip_serializing_if = "Option::is_none", default)] @@ -29,14 +29,14 @@ pub struct InputConfig { pub tap_config: Option, } -#[derive(Debug, Deserialize, Serialize)] +#[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct AccelConfig { #[serde(with = "AccelProfileDef")] pub profile: Option, pub speed: f64, } -#[derive(Debug, Deserialize, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct ScrollConfig { #[serde(with = "ScrollMethodDef")] pub method: Option, @@ -57,7 +57,7 @@ impl Default for DeviceState { } } -#[derive(Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, Serialize, Deserialize)] pub struct TapConfig { pub enabled: bool, #[serde(with = "TapButtonMapDef")]