diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-02-04 09:35:29 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-02-04 09:35:29 +0100 |
| commit | f655656fb8cb6135b26e7960ce0b7adf96d6f567 (patch) | |
| tree | 218ace99f2c38aa51a5d503414046ca6c295ad91 /src/library/layout.rs | |
| parent | ec60795575c29ee7fc2ea7507cfcc38958fe67bf (diff) | |
Streamline Key + Value traits 🌊
Diffstat (limited to 'src/library/layout.rs')
| -rw-r--r-- | src/library/layout.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/layout.rs b/src/library/layout.rs index d36cd0e0..591ea2c0 100644 --- a/src/library/layout.rs +++ b/src/library/layout.rs @@ -13,7 +13,7 @@ function! { parse(header, body, ctx, errors, decos) { AlignFunc { body: body!(opt: body, ctx, errors, decos), - map: PosAxisMap::parse::<AxisKey, AlignmentValue>(errors, &mut header.args), + map: PosAxisMap::parse::<AxisKey>(errors, &mut header.args), } } @@ -59,7 +59,7 @@ function! { DirectionFunc { name_span: header.name.span, body: body!(opt: body, ctx, errors, decos), - map: PosAxisMap::parse::<AxisKey, Direction>(errors, &mut header.args), + map: PosAxisMap::parse::<AxisKey>(errors, &mut header.args), } } @@ -106,7 +106,7 @@ function! { parse(header, body, ctx, errors, decos) { BoxFunc { body: body!(opt: body, ctx, errors, decos).unwrap_or(SyntaxModel::new()), - extents: AxisMap::parse::<ExtentKey, PSize>(errors, &mut header.args.key), + extents: AxisMap::parse::<ExtentKey>(errors, &mut header.args.key), debug: header.args.key.get::<bool>(errors, "debug"), } } |
