diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2023-08-26 16:56:58 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2023-08-26 16:56:58 +0300 |
| commit | 6aeb76407a30309326a04b29d19e5390a4b96248 (patch) | |
| tree | a89a94b0e8a0a457bb6774a87cdc6be7b5e7bba3 /src/text.rs | |
| parent | e07d9872f072ab63cf2d74950b989571b84b9826 (diff) | |
| download | i3bar-mango-6aeb76407a30309326a04b29d19e5390a4b96248.tar.gz | |
rework wm_info_provider stuff
Diffstat (limited to 'src/text.rs')
| -rw-r--r-- | src/text.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/text.rs b/src/text.rs index bc1516d..3a824d8 100644 --- a/src/text.rs +++ b/src/text.rs @@ -34,20 +34,15 @@ pub struct Attributes<'a> { pub markup: bool, } -#[derive(Deserialize, Debug, Clone, Copy, PartialEq, Eq)] +#[derive(Deserialize, Default, Debug, Clone, Copy, PartialEq, Eq)] #[serde(rename_all = "lowercase")] pub enum Align { Right, + #[default] Left, Center, } -impl Default for Align { - fn default() -> Self { - Self::Left - } -} - #[derive(Clone, Debug, PartialEq)] pub struct ComputedText { pub width: f64, |
