summaryrefslogtreecommitdiff
path: root/src/parse/tests.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-09-30 14:38:46 +0200
committerLaurenz <laurmaedje@gmail.com>2020-09-30 14:38:46 +0200
commit3c3730425f0a9a4241c4f57cb7f4d00b71db201e (patch)
tree8e63405574bc3909dddc2d3e8402a66bb2a8f059 /src/parse/tests.rs
parent7143e10afccc7beef22646f6c7355075f97afb2c (diff)
SpanWith trait ↔
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.