summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-09-30 12:49:30 +0200
committerLaurenz <laurmaedje@gmail.com>2020-09-30 12:49:30 +0200
commit3e791e3337b912ebc1f1771c4a1c0e4ed5723198 (patch)
treeb2c54ba4f24111423c60c4a32e1616fedecce58d /src/lib.rs
parentbc1b4216a802d09e8d00dd277a0e204d49bcaa7f (diff)
Move decoration into mod.rs 🔙
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7681f5b7..10e1f810 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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 {