diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-10-28 16:43:38 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-10-28 16:43:38 +0200 |
| commit | 95e9134a3c7d7a14d8c8928413fdffc665671895 (patch) | |
| tree | 822b5f6c2d23aba33cfe4d199405e493e37c3d70 /src/syntax/kind.rs | |
| parent | 66030ae5d73d85a0463562230b87f8ec7554c746 (diff) | |
Refactor `geom` module
Diffstat (limited to 'src/syntax/kind.rs')
| -rw-r--r-- | src/syntax/kind.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/kind.rs b/src/syntax/kind.rs index 3273e72d..1568693b 100644 --- a/src/syntax/kind.rs +++ b/src/syntax/kind.rs @@ -1,7 +1,7 @@ use std::hash::{Hash, Hasher}; use std::sync::Arc; -use crate::geom::{AngleUnit, LengthUnit}; +use crate::geom::{AbsUnit, AngleUnit}; use crate::util::EcoString; /// All syntactical building blocks that can be part of a Typst document. @@ -277,7 +277,7 @@ pub struct RawKind { #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] pub enum Unit { /// An absolute length unit. - Length(LengthUnit), + Length(AbsUnit), /// An angular unit. Angle(AngleUnit), /// Font-relative: `1em` is the same as the font size. |
