This commit is contained in:
Aleksey Kladov
2020-06-26 17:17:38 +02:00
parent 9d15e8fc4f
commit de7b248227
2 changed files with 2 additions and 12 deletions

View File

@@ -4,7 +4,6 @@ use std::{error::Error, ops::Range};
use lsp_server::Notification;
use ra_db::Canceled;
use ra_ide::LineIndex;
use serde::Serialize;
use crate::{from_proto, global_state::GlobalState};
@@ -18,14 +17,6 @@ pub(crate) fn notification_is<N: lsp_types::notification::Notification>(
notification.method == N::METHOD
}
pub(crate) fn notification_new<N>(params: N::Params) -> Notification
where
N: lsp_types::notification::Notification,
N::Params: Serialize,
{
Notification::new(N::METHOD.to_string(), params)
}
#[derive(Debug, Eq, PartialEq)]
pub(crate) enum Progress {
Begin,