diff --git a/crates/server/src/dispatch.rs b/crates/server/src/dispatch.rs index 6a609f10e8aa..eb23ab64fd28 100644 --- a/crates/server/src/dispatch.rs +++ b/crates/server/src/dispatch.rs @@ -16,7 +16,7 @@ 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 10f0b291980f..645a17306490 100644 --- a/crates/server/src/req.rs +++ b/crates/server/src/req.rs @@ -7,14 +7,14 @@ }; -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, {