Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'src/text/inlay.rs')
-rw-r--r--src/text/inlay.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text/inlay.rs b/src/text/inlay.rs
index 6712069..049aad7 100644
--- a/src/text/inlay.rs
+++ b/src/text/inlay.rs
@@ -1,5 +1,5 @@
use Default::default;
-use lsp_types::{InlayHint, InlayHintLabel, Location};
+use lsp_types::{InlayHint, Label, Location};
use serde_derive::{Deserialize, Serialize};
use crate::text::{RopeExt, TextArea};
@@ -39,9 +39,9 @@ impl TextArea {
.iter()
.filter_map(|i| {
let mut label = match &i.label {
- InlayHintLabel::String(x) =>
+ Label::String(x) =>
x.chars().map(|x| (x, None)).collect::<Vec<_>>(),
- InlayHintLabel::LabelParts(v) => v
+ Label::InlayHintLabelPartList(v) => v
.iter()
.flat_map(|x| {
x.value