diff options
Diffstat (limited to 'src/syntax/token.rs')
| -rw-r--r-- | src/syntax/token.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs index 78519962..fb50c4ec 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -1,4 +1,4 @@ -use crate::geom::Unit; +use crate::geom::LengthUnit; /// A minimal semantic entity of source code. #[derive(Debug, Copy, Clone, PartialEq)] @@ -70,7 +70,7 @@ pub enum Token<'s> { /// A floating-point number: `1.2`, `10e-4`. Float(f64), /// A length: `12pt`, `3cm`. - Length(f64, Unit), + Length(f64, LengthUnit), /// A percentage: `50%`. /// /// _Note_: `50%` is stored as `50.0` here, as in the corresponding |
