summaryrefslogtreecommitdiff
path: root/src/parse/tokenizer.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/tokenizer.rs
parent7143e10afccc7beef22646f6c7355075f97afb2c (diff)
SpanWith trait ↔
Diffstat (limited to 'src/parse/tokenizer.rs')
-rw-r--r--src/parse/tokenizer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/tokenizer.rs b/src/parse/tokenizer.rs
index a251d960..d3605309 100644
--- a/src/parse/tokenizer.rs
+++ b/src/parse/tokenizer.rs
@@ -5,7 +5,7 @@ use std::str::Chars;
use unicode_xid::UnicodeXID;
use crate::length::Length;
-use crate::syntax::{Pos, Span, Spanned, Token};
+use crate::syntax::{Pos, Span, SpanWith, Spanned, Token};
use Token::*;
use TokenMode::*;
@@ -236,7 +236,7 @@ impl<'s> Tokens<'s> {
let end = self.pos();
let lang = if !lang.is_empty() {
- Some(Spanned::new(lang, Span::new(start, end)))
+ Some(lang.span_with(Span::new(start, end)))
} else {
None
};