More type safety for highlighting

This commit is contained in:
Aleksey Kladov
2020-02-26 17:08:15 +01:00
parent 640ede4ade
commit f38bac48e5
6 changed files with 111 additions and 93 deletions

View File

@@ -954,7 +954,7 @@ fn highlight(world: &WorldSnapshot, file_id: FileId) -> Result<Vec<Decoration>>
.into_iter()
.map(|h| Decoration {
range: h.range.conv_with(&line_index),
tag: h.tag,
tag: h.tag.to_string(),
binding_hash: h.binding_hash.map(|x| x.to_string()),
})
.collect();