diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-08 16:39:37 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-09 12:34:19 +0100 |
| commit | e089b6ea40015e012302dc55ac5d6cb42ca4876e (patch) | |
| tree | dbb66237cb996bc880560dfd94ac9b682e1ac985 /src/library/spacing.rs | |
| parent | 68503b9a07b00bce3f4d377bcfe945452de815ea (diff) | |
Set rules for everything
Diffstat (limited to 'src/library/spacing.rs')
| -rw-r--r-- | src/library/spacing.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library/spacing.rs b/src/library/spacing.rs index feadf7f3..3e26cb3c 100644 --- a/src/library/spacing.rs +++ b/src/library/spacing.rs @@ -38,6 +38,12 @@ impl SpacingKind { } } +impl From<Length> for SpacingKind { + fn from(length: Length) -> Self { + Self::Linear(length.into()) + } +} + castable! { SpacingKind, Expected: "linear or fractional", |
