diff options
Diffstat (limited to 'src/syntax/kind.rs')
| -rw-r--r-- | src/syntax/kind.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/kind.rs b/src/syntax/kind.rs index e76c93aa..77d4cd99 100644 --- a/src/syntax/kind.rs +++ b/src/syntax/kind.rs @@ -2,7 +2,7 @@ use std::hash::{Hash, Hasher}; use std::sync::Arc; use super::ast::{RawNode, Unit}; -use super::SpanPos; +use crate::diag::ErrorPos; use crate::util::EcoString; /// All syntactical building blocks that can be part of a Typst document. @@ -271,7 +271,7 @@ pub enum NodeKind { ReturnExpr, /// An invalid sequence of characters. - Error(SpanPos, EcoString), + Error(ErrorPos, EcoString), } impl NodeKind { |
