summaryrefslogtreecommitdiff
path: root/src/syntax/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/expr.rs')
-rw-r--r--src/syntax/expr.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs
index a551c2b6..0a9ab149 100644
--- a/src/syntax/expr.rs
+++ b/src/syntax/expr.rs
@@ -7,7 +7,7 @@ use std::u8;
use crate::Feedback;
use crate::length::Length;
-use super::span::Spanned;
+use super::span::{Spanned, SpanVec};
use super::tokens::is_identifier;
use super::value::Value;
@@ -237,7 +237,7 @@ impl fmt::Display for ParseColorError {
/// (false, 12cm, "hi")
/// ```
#[derive(Default, Clone, PartialEq)]
-pub struct Tuple(pub Vec<Spanned<Expr>>);
+pub struct Tuple(pub SpanVec<Expr>);
impl Tuple {
/// Create an empty tuple.
@@ -333,7 +333,7 @@ impl Deref for NamedTuple {
/// { fit: false, width: 12cm, items: (1, 2, 3) }
/// ```
#[derive(Default, Clone, PartialEq)]
-pub struct Object(pub Vec<Spanned<Pair>>);
+pub struct Object(pub SpanVec<Pair>);
/// A key-value pair in an object.
#[derive(Debug, Clone, PartialEq)]