diff options
author | Aleksey Kladov <[email protected]> | 2018-08-10 22:01:37 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-10 22:01:37 +0100 |
commit | 46e4232cc69bc2e003dc8a14e604119bb36e9f9f (patch) | |
tree | eb49c33ec3e00c16b8959fbe55d035893e6e327b /crates/server/src/req.rs | |
parent | 52de08330f5052a1f10c5d46e1352ca86b622d71 (diff) |
simplify bouds
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 | { |