diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-04 23:31:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-04 23:31:35 +0200 |
| commit | 335fa2d118718b4dba539294a8ef6c96c5bbf09e (patch) | |
| tree | 08e48d0c18c350bc9479d0d801d2320628d8e4a2 /src/library/spacing.rs | |
| parent | 605ab104c5e041c345007020d277b4c6267debe6 (diff) | |
Small improvements 🍪
Diffstat (limited to 'src/library/spacing.rs')
| -rw-r--r-- | src/library/spacing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/spacing.rs b/src/library/spacing.rs index b97f4640..b38f0607 100644 --- a/src/library/spacing.rs +++ b/src/library/spacing.rs @@ -1,6 +1,6 @@ -use super::*; use crate::geom::Linear; use crate::layout::SpacingKind; +use crate::prelude::*; /// `h`: Add horizontal spacing. /// @@ -19,7 +19,7 @@ pub async fn v(args: Args, ctx: &mut LayoutContext) -> Value { } fn spacing(mut args: Args, ctx: &mut LayoutContext, axis: SpecAxis) -> Value { - let spacing = args.get::<_, Linear>(ctx, 0); + let spacing = args.need::<_, Linear>(ctx, 0, "spacing"); args.done(ctx); Value::Commands(if let Some(spacing) = spacing { |
