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/expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax/expr.rs') diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index ae876209..78f4feee 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -1,6 +1,6 @@ use super::*; use crate::color::RgbaColor; -use crate::geom::Unit; +use crate::geom::LengthUnit; /// An expression. #[derive(Debug, Clone, PartialEq)] @@ -16,7 +16,7 @@ pub enum Expr { /// A floating-point literal: `1.2`, `10e-4`. Float(f64), /// A length literal: `12pt`, `3cm`. - Length(f64, Unit), + Length(f64, LengthUnit), /// A percent literal: `50%`. /// /// _Note_: `50%` is stored as `50.0` here, but as `0.5` in the -- cgit v1.2.3