diff options
Diffstat (limited to 'crates/typst-syntax/src/node.rs')
| -rw-r--r-- | crates/typst-syntax/src/node.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-syntax/src/node.rs b/crates/typst-syntax/src/node.rs index dd5deab2..9b73dd7f 100644 --- a/crates/typst-syntax/src/node.rs +++ b/crates/typst-syntax/src/node.rs @@ -3,7 +3,7 @@ use std::ops::{Deref, Range}; use std::rc::Rc; use std::sync::Arc; -use ecow::EcoString; +use ecow::{eco_vec, EcoString, EcoVec}; use super::ast::AstNode; use super::{FileId, Span, SyntaxKind}; @@ -616,7 +616,7 @@ impl ErrorNode { error: SyntaxError { span: Span::detached(), message: message.into(), - hints: vec![], + hints: eco_vec![], }, } } @@ -652,7 +652,7 @@ pub struct SyntaxError { pub message: EcoString, /// Additonal hints to the user, indicating how this error could be avoided /// or worked around. - pub hints: Vec<EcoString>, + pub hints: EcoVec<EcoString>, } impl SyntaxError { |
