summaryrefslogtreecommitdiff
path: root/src/parse/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/tests.rs')
-rw-r--r--src/parse/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/tests.rs b/src/parse/tests.rs
index 70517bd8..209717f9 100644
--- a/src/parse/tests.rs
+++ b/src/parse/tests.rs
@@ -187,7 +187,7 @@ where
}
pub fn s<T>(sl: usize, sc: usize, el: usize, ec: usize, v: T) -> Spanned<T> {
- Spanned::new(v, Span::new(Pos::new(sl, sc), Pos::new(el, ec)))
+ v.span_with(Span::new(Pos::new(sl, sc), Pos::new(el, ec)))
}
// Enables tests to optionally specify spans.