diff options
Diffstat (limited to 'crates/rust-analyzer/src/lsp_utils.rs')
-rw-r--r-- | crates/rust-analyzer/src/lsp_utils.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/rust-analyzer/src/lsp_utils.rs b/crates/rust-analyzer/src/lsp_utils.rs index 99f4998a9..0bc3ff115 100644 --- a/crates/rust-analyzer/src/lsp_utils.rs +++ b/crates/rust-analyzer/src/lsp_utils.rs | |||
@@ -4,7 +4,6 @@ use std::{error::Error, ops::Range}; | |||
4 | use lsp_server::Notification; | 4 | use lsp_server::Notification; |
5 | use ra_db::Canceled; | 5 | use ra_db::Canceled; |
6 | use ra_ide::LineIndex; | 6 | use ra_ide::LineIndex; |
7 | use serde::Serialize; | ||
8 | 7 | ||
9 | use crate::{from_proto, global_state::GlobalState}; | 8 | use crate::{from_proto, global_state::GlobalState}; |
10 | 9 | ||
@@ -18,14 +17,6 @@ pub(crate) fn notification_is<N: lsp_types::notification::Notification>( | |||
18 | notification.method == N::METHOD | 17 | notification.method == N::METHOD |
19 | } | 18 | } |
20 | 19 | ||
21 | pub(crate) fn notification_new<N>(params: N::Params) -> Notification | ||
22 | where | ||
23 | N: lsp_types::notification::Notification, | ||
24 | N::Params: Serialize, | ||
25 | { | ||
26 | Notification::new(N::METHOD.to_string(), params) | ||
27 | } | ||
28 | |||
29 | #[derive(Debug, Eq, PartialEq)] | 20 | #[derive(Debug, Eq, PartialEq)] |
30 | pub(crate) enum Progress { | 21 | pub(crate) enum Progress { |
31 | Begin, | 22 | Begin, |