From 3ac9732ca3bb34bfdda723d4eeed3040db7b1542 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 28 Aug 2020 21:55:24 +0300 Subject: Fix some typos --- crates/rust-analyzer/src/handlers.rs | 2 +- crates/rust-analyzer/src/to_proto.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs index 8568f7b05..d62dd0589 100644 --- a/crates/rust-analyzer/src/handlers.rs +++ b/crates/rust-analyzer/src/handlers.rs @@ -1075,7 +1075,7 @@ pub(crate) fn handle_inlay_hints( .analysis .inlay_hints(file_id, &snap.config.inlay_hints)? .into_iter() - .map(|it| to_proto::inlay_int(&line_index, it)) + .map(|it| to_proto::inlay_hint(&line_index, it)) .collect()) } diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index a5191c16e..a8173a338 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -294,7 +294,7 @@ pub(crate) fn signature_help( } } -pub(crate) fn inlay_int(line_index: &LineIndex, inlay_hint: InlayHint) -> lsp_ext::InlayHint { +pub(crate) fn inlay_hint(line_index: &LineIndex, inlay_hint: InlayHint) -> lsp_ext::InlayHint { lsp_ext::InlayHint { label: inlay_hint.label.to_string(), range: range(line_index, inlay_hint.range), -- cgit v1.2.3