diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-04 13:48:07 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-04 13:48:07 +0200 |
| commit | 2467cd6272c13b618ad53c5dadff5b8c8e7885bf (patch) | |
| tree | 6ad13ec06a04997564efc514b40daa3fb65233e2 /src/syntax/value.rs | |
| parent | ed4fdcb0ada909f1cc3d7436334e253f0ec14d55 (diff) | |
Refactor function parsing ♻
Diffstat (limited to 'src/syntax/value.rs')
| -rw-r--r-- | src/syntax/value.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/syntax/value.rs b/src/syntax/value.rs index b7211eaf..c523ff93 100644 --- a/src/syntax/value.rs +++ b/src/syntax/value.rs @@ -2,7 +2,7 @@ use fontdock::{FontStyle, FontWeight, FontWidth}; -use crate::layout::prelude::*; +use crate::layout::{Dir, SpecAlign}; use crate::length::{Length, ScaleLength}; use crate::paper::Paper; use crate::Feedback; @@ -103,10 +103,10 @@ macro_rules! ident_value { } ident_value!(Dir, "direction", |s| match s { - "ltr" => Some(LTR), - "rtl" => Some(RTL), - "ttb" => Some(TTB), - "btt" => Some(BTT), + "ltr" => Some(Self::LTR), + "rtl" => Some(Self::RTL), + "ttb" => Some(Self::TTB), + "btt" => Some(Self::BTT), _ => None, }); |
