diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-09-30 12:49:30 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-09-30 12:49:30 +0200 |
| commit | 3e791e3337b912ebc1f1771c4a1c0e4ed5723198 (patch) | |
| tree | b2c54ba4f24111423c60c4a32e1616fedecce58d /src/lib.rs | |
| parent | bc1b4216a802d09e8d00dd277a0e204d49bcaa7f (diff) | |
Move decoration into mod.rs 🔙
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -46,11 +46,11 @@ use std::pin::Pin; use crate::compute::scope::Scope; use crate::compute::value::Value; -use crate::diagnostic::Diagnostics; +use crate::diagnostic::Diagnostic; use crate::font::SharedFontLoader; use crate::layout::{Commands, MultiLayout}; use crate::style::{LayoutStyle, PageStyle, TextStyle}; -use crate::syntax::{Decorations, Offset, Pos, SyntaxTree}; +use crate::syntax::{Decoration, Offset, Pos, SpanVec, SyntaxTree}; /// Transforms source code into typesetted layouts. /// @@ -166,9 +166,9 @@ impl Pass<Value> { #[derive(Debug, Default, Clone, Eq, PartialEq)] pub struct Feedback { /// Diagnostics about the source code. - pub diagnostics: Diagnostics, + pub diagnostics: SpanVec<Diagnostic>, /// Decorations of the source code for semantic syntax highlighting. - pub decorations: Decorations, + pub decorations: SpanVec<Decoration>, } impl Feedback { |
