From 3b2a28ca8edf61cb1376a095be36c7d006c92d76 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 9 Jan 2021 21:35:36 +0100 Subject: =?UTF-8?q?Add=20angle=20data=20type=20=F0=9F=93=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/token.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax/token.rs') 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 -- cgit v1.2.3