Simplify InlayMap::splice interface

This commit is contained in:
Antonio Scandurra 2023-06-10 19:47:39 +02:00 committed by Kirill Bulatov
parent 7684a26daa
commit 2b1b1225f5
3 changed files with 34 additions and 38 deletions

View file

@ -309,7 +309,7 @@ impl DisplayMap {
buffer_snapshot.anchor_in_excerpt(location.excerpt_id, hint.position);
new_inlays.push(InlayProperties {
position: hint_anchor,
text: hint.text().trim_end().into(),
text: hint.text(),
});
}
}