&str -> Text

This commit is contained in:
Yehuda Katz
2019-06-22 16:46:16 -04:00
parent 3b35dcb619
commit 4036bf1ffd
36 changed files with 130 additions and 103 deletions

View File

@ -70,7 +70,7 @@ impl Highlighter for Helper {
match iter.next() {
None => return Cow::Owned(out),
Some(v) => out.push_str(v.span().slice(line)),
Some(v) => out.push_str(v.span().slice(&Text::from(line))),
};
loop {