summaryrefslogtreecommitdiff
path: root/src/text.rs
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2023-08-26 16:56:58 +0300
committerMaxVerevkin <maxxverrr@gmail.com>2023-08-26 16:56:58 +0300
commit6aeb76407a30309326a04b29d19e5390a4b96248 (patch)
treea89a94b0e8a0a457bb6774a87cdc6be7b5e7bba3 /src/text.rs
parente07d9872f072ab63cf2d74950b989571b84b9826 (diff)
downloadi3bar-mango-6aeb76407a30309326a04b29d19e5390a4b96248.tar.gz
rework wm_info_provider stuff
Diffstat (limited to 'src/text.rs')
-rw-r--r--src/text.rs9
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,