1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 14:21:03 +02:00

refactor: enum/struct formatting

This commit is contained in:
BowDown097 2025-01-01 12:27:26 -08:00
parent 708118d266
commit 9cb1dfc1b1
3 changed files with 5 additions and 5 deletions

View file

@ -206,7 +206,7 @@ pub enum ModuleJustification {
Left,
Right,
Center,
Fill
Fill,
}
impl From<ModuleJustification> for Justification {
@ -215,7 +215,7 @@ impl From<ModuleJustification> for Justification {
ModuleJustification::Left => Self::Left,
ModuleJustification::Right => Self::Right,
ModuleJustification::Center => Self::Center,
ModuleJustification::Fill => Self::Fill
ModuleJustification::Fill => Self::Fill,
}
}
}

View file

@ -68,7 +68,7 @@ pub struct ClockModule {
/// <br>
/// **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,
}
}
}

View file

@ -43,7 +43,7 @@ pub struct LabelWidget {
/// <br>
/// **Default**: `left`
#[serde(default)]
justify: ModuleJustification
justify: ModuleJustification,
}
impl CustomWidget for LabelWidget {