diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:21:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:21:35 +0200 |
| commit | f4460f8abd7dee1806cf59b4d3777581a6ed154a (patch) | |
| tree | 8e591d253a537a76f8c309e23b09bf7a9a762fd5 /src/library/spacing.rs | |
| parent | 0f7c70fd93db23ec866ae13aa2f146b7787afabf (diff) | |
Style nits 🎈
Diffstat (limited to 'src/library/spacing.rs')
| -rw-r--r-- | src/library/spacing.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/spacing.rs b/src/library/spacing.rs index 91f407fe..9ca68263 100644 --- a/src/library/spacing.rs +++ b/src/library/spacing.rs @@ -6,7 +6,7 @@ use crate::layout::SpacingKind; /// /// # Positional arguments /// - The spacing (length or relative to font size). -pub async fn h(args: DictValue, ctx: &mut LayoutContext) -> Value { +pub async fn h(args: ValueDict, ctx: &mut LayoutContext) -> Value { spacing(args, ctx, SpecAxis::Horizontal) } @@ -14,11 +14,11 @@ pub async fn h(args: DictValue, ctx: &mut LayoutContext) -> Value { /// /// # Positional arguments /// - The spacing (length or relative to font size). -pub async fn v(args: DictValue, ctx: &mut LayoutContext) -> Value { +pub async fn v(args: ValueDict, ctx: &mut LayoutContext) -> Value { spacing(args, ctx, SpecAxis::Vertical) } -fn spacing(mut args: DictValue, ctx: &mut LayoutContext, axis: SpecAxis) -> Value { +fn spacing(mut args: ValueDict, ctx: &mut LayoutContext, axis: SpecAxis) -> Value { let spacing = args.expect::<Linear>("spacing", Span::ZERO, &mut ctx.f); args.unexpected(&mut ctx.f); Value::Commands(if let Some(spacing) = spacing { |
