From 46e4232cc69bc2e003dc8a14e604119bb36e9f9f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 00:01:37 +0300 Subject: simplify bouds --- crates/server/src/dispatch.rs | 2 +- crates/server/src/req.rs | 4 ++-- 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 ::{ pub struct Responder { id: u64, bomb: DropBomb, - ph: PhantomData, + ph: PhantomData, } impl Responder 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::{ }; -pub trait ClientRequest: Send + 'static { +pub trait ClientRequest: 'static { type Params: DeserializeOwned + Send + 'static; type Result: Serialize + Send + 'static; const METHOD: &'static str; } impl ClientRequest for T - where T: Request + Send + 'static, + where T: Request + 'static, T::Params: DeserializeOwned + Send + 'static, T::Result: Serialize + Send + 'static, { -- cgit v1.2.3