Simpler deserialization

This commit is contained in:
Aleksey Kladov
2020-03-12 18:01:36 +01:00
parent fd3ece2b73
commit b3fa7312a7
6 changed files with 38 additions and 28 deletions

View File

@@ -999,11 +999,7 @@ pub fn handle_inlay_hints(
Ok(analysis
.inlay_hints(file_id, &world.options.inlay_hints)?
.into_iter()
.map(|api_type| InlayHint {
label: api_type.label.to_string(),
range: api_type.range.conv_with(&line_index),
kind: api_type.kind,
})
.map_conv_with(&line_index)
.collect())
}