diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-01-24 12:44:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-01-24 12:44:04 +0100 |
| commit | 03fddaf3aea778057aedd74dbcb27bae971ec22f (patch) | |
| tree | 37e3136e29e0e5d69ec8f56e43d156739d2931ab /src/layout/model.rs | |
| parent | 78da2bdd5d77d1b8572e5e9da119bfa68127a3fa (diff) | |
Non-fatal argument parsing 🌋
Diffstat (limited to 'src/layout/model.rs')
| -rw-r--r-- | src/layout/model.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/model.rs b/src/layout/model.rs index 73492dd9..13d38083 100644 --- a/src/layout/model.rs +++ b/src/layout/model.rs @@ -1,6 +1,6 @@ use smallvec::smallvec; -use crate::error::Error; +use crate::error::Errors; use crate::func::Command; use crate::syntax::{Model, DynFuture, SyntaxModel, Node}; use crate::syntax::{SpanVec, Spanned, Span, offset_spans}; @@ -12,7 +12,7 @@ pub struct ModelLayouter<'a, 'p> { ctx: LayoutContext<'a, 'p>, layouter: LineLayouter, style: LayoutStyle, - errors: SpanVec<Error>, + errors: Errors, } impl<'a, 'p> ModelLayouter<'a, 'p> { @@ -105,7 +105,7 @@ impl<'a, 'p> ModelLayouter<'a, 'p> { Add(layout) => self.layouter.add(layout), AddMultiple(layouts) => self.layouter.add_multiple(layouts), - SpacingFunc(space, kind, axis) => match axis { + AddSpacing(space, kind, axis) => match axis { Primary => self.layouter.add_primary_spacing(space, kind), Secondary => self.layouter.add_secondary_spacing(space, kind), } |
