diff options
Diffstat (limited to 'crates/server/src/req.rs')
-rw-r--r-- | crates/server/src/req.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 | ||
10 | pub trait ClientRequest: Send + 'static { | 10 | pub 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 | ||
16 | impl<T> ClientRequest for T | 16 | impl<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 | { |