Clean up inlay hints

This commit is contained in:
Dániel Buga 2022-09-11 14:32:47 +02:00
parent 676fab48d0
commit e55da0c30b
1 changed files with 3 additions and 3 deletions

View File

@ -808,9 +808,9 @@ pub fn get_inlay_hints(&self) {
if let BufferContent::File(path) = self.content() {
let tab_id = self.tab_id;
let path = path.clone();
let rev = self.rev();
let len = self.buffer().len();
let buffer = self.buffer().clone();
let rev = buffer.rev();
let len = buffer.len();
let event_sink = self.event_sink.clone();
self.proxy
.proxy_rpc
@ -831,7 +831,7 @@ pub fn get_inlay_hints(&self) {
let offset = offset.min(len);
hints_span.add_span(
Interval::new(offset, (offset + 1).min(len)),
hint.clone(),
hint,
);
}
}