From 447a84800941819a435132b8acc6dd2e7bc993c8 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 23 Nov 2023 10:53:44 +0100 Subject: [PATCH] add traits --- kubi-ui/src/element/progress_bar.rs | 1 + kubi-ui/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kubi-ui/src/element/progress_bar.rs b/kubi-ui/src/element/progress_bar.rs index 52f3d1a..854ad0b 100644 --- a/kubi-ui/src/element/progress_bar.rs +++ b/kubi-ui/src/element/progress_bar.rs @@ -7,6 +7,7 @@ use crate::{ }; use super::UiElement; +#[derive(Debug, Clone, Copy)] pub struct ProgressBar { pub size: (UiSize, UiSize), pub value: f32, diff --git a/kubi-ui/src/lib.rs b/kubi-ui/src/lib.rs index e063df0..efabdc5 100644 --- a/kubi-ui/src/lib.rs +++ b/kubi-ui/src/lib.rs @@ -72,7 +72,7 @@ impl Default for KubiUi { } } -#[derive(Default)] +#[derive(Default, Debug, Clone, Copy)] pub enum UiSize { #[default] Auto,