aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/server/src')
-rw-r--r--crates/server/src/dispatch.rs2
-rw-r--r--crates/server/src/req.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/server/src/dispatch.rs b/crates/server/src/dispatch.rs
index 6a609f10e..eb23ab64f 100644
--- a/crates/server/src/dispatch.rs
+++ b/crates/server/src/dispatch.rs
@@ -16,7 +16,7 @@ use ::{
16pub struct Responder<R: ClientRequest> { 16pub struct Responder<R: ClientRequest> {
17 id: u64, 17 id: u64,
18 bomb: DropBomb, 18 bomb: DropBomb,
19 ph: PhantomData<R>, 19 ph: PhantomData<fn(R)>,
20} 20}
21 21
22impl<R: ClientRequest> Responder<R> 22impl<R: ClientRequest> Responder<R>
diff --git a/crates/server/src/req.rs b/crates/server/src/req.rs
index 10f0b2919..645a17306 100644
--- a/crates/server/src/req.rs
+++ b/crates/server/src/req.rs
@@ -7,14 +7,14 @@ pub use languageserver_types::{
7}; 7};
8 8
9 9
10pub trait ClientRequest: Send + 'static { 10pub trait ClientRequest: 'static {
11 type Params: DeserializeOwned + Send + 'static; 11 type Params: DeserializeOwned + Send + 'static;
12 type Result: Serialize + Send + 'static; 12 type Result: Serialize + Send + 'static;
13 const METHOD: &'static str; 13 const METHOD: &'static str;
14} 14}
15 15
16impl<T> ClientRequest for T 16impl<T> ClientRequest for T
17 where T: Request + Send + 'static, 17 where T: Request + 'static,
18 T::Params: DeserializeOwned + Send + 'static, 18 T::Params: DeserializeOwned + Send + 'static,
19 T::Result: Serialize + Send + 'static, 19 T::Result: Serialize + Send + 'static,
20{ 20{