From 9cb1dfc1b1687df38347a914b20bf677a5f88cb3 Mon Sep 17 00:00:00 2001 From: BowDown097 Date: Wed, 1 Jan 2025 12:27:26 -0800 Subject: [PATCH] refactor: enum/struct formatting --- src/config/common.rs | 4 ++-- src/modules/clock.rs | 4 ++-- src/modules/custom/label.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config/common.rs b/src/config/common.rs index 1b66318..855a3dc 100644 --- a/src/config/common.rs +++ b/src/config/common.rs @@ -206,7 +206,7 @@ pub enum ModuleJustification { Left, Right, Center, - Fill + Fill, } impl From for Justification { @@ -215,7 +215,7 @@ impl From for Justification { ModuleJustification::Left => Self::Left, ModuleJustification::Right => Self::Right, ModuleJustification::Center => Self::Center, - ModuleJustification::Fill => Self::Fill + ModuleJustification::Fill => Self::Fill, } } } diff --git a/src/modules/clock.rs b/src/modules/clock.rs index fc14df5..8f155a5 100644 --- a/src/modules/clock.rs +++ b/src/modules/clock.rs @@ -68,7 +68,7 @@ pub struct ClockModule { ///
/// **Default**: `left` #[serde(default)] - justify: ModuleJustification + justify: ModuleJustification, } impl Default for ClockModule { @@ -79,7 +79,7 @@ impl Default for ClockModule { locale: default_locale(), orientation: ModuleOrientation::Horizontal, common: Some(CommonConfig::default()), - justify: ModuleJustification::Left + justify: ModuleJustification::Left, } } } diff --git a/src/modules/custom/label.rs b/src/modules/custom/label.rs index c78868d..8903789 100644 --- a/src/modules/custom/label.rs +++ b/src/modules/custom/label.rs @@ -43,7 +43,7 @@ pub struct LabelWidget { ///
/// **Default**: `left` #[serde(default)] - justify: ModuleJustification + justify: ModuleJustification, } impl CustomWidget for LabelWidget {