Relax redundant 'static lifetime bounds on ScalarValue in juniper_subscriptions::Coordinator (#680)
This commit is contained in:
parent
7365b0fdd8
commit
5b9c6111f1
4 changed files with 6 additions and 7 deletions
|
@ -134,7 +134,7 @@ where
|
||||||
'req: 'a,
|
'req: 'a,
|
||||||
'rn: 'a,
|
'rn: 'a,
|
||||||
'ctx: 'a,
|
'ctx: 'a,
|
||||||
S: ScalarValue + Send + Sync + 'static,
|
S: ScalarValue + Send + Sync,
|
||||||
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
||||||
QueryT::TypeInfo: Send + Sync,
|
QueryT::TypeInfo: Send + Sync,
|
||||||
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
[package]
|
[package]
|
||||||
name = "juniper_subscriptions"
|
name = "juniper_subscriptions"
|
||||||
version = "0.14.2"
|
version = "0.14.2"
|
||||||
|
edition = "2018"
|
||||||
authors = ["nWacky <gosha.evtushenko@gmail.com>"]
|
authors = ["nWacky <gosha.evtushenko@gmail.com>"]
|
||||||
description = "Juniper SubscriptionCoordinator and SubscriptionConnection implementations"
|
description = "Juniper SubscriptionCoordinator and SubscriptionConnection implementations"
|
||||||
license = "BSD-2-Clause"
|
license = "BSD-2-Clause"
|
||||||
documentation = "https://docs.rs/juniper_subscriptions"
|
documentation = "https://docs.rs/juniper_subscriptions"
|
||||||
repository = "https://github.com/graphql-rust/juniper"
|
repository = "https://github.com/graphql-rust/juniper"
|
||||||
edition = "2018"
|
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
|
|
|
@ -25,7 +25,7 @@ use juniper::{
|
||||||
/// - handles subscription start
|
/// - handles subscription start
|
||||||
pub struct Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
|
pub struct Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
|
||||||
where
|
where
|
||||||
S: ScalarValue + Send + Sync + 'static,
|
S: ScalarValue + Send + Sync,
|
||||||
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
||||||
QueryT::TypeInfo: Send + Sync,
|
QueryT::TypeInfo: Send + Sync,
|
||||||
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
||||||
|
@ -40,7 +40,7 @@ where
|
||||||
impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
|
impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
|
||||||
Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
|
Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
|
||||||
where
|
where
|
||||||
S: ScalarValue + Send + Sync + 'static,
|
S: ScalarValue + Send + Sync,
|
||||||
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
||||||
QueryT::TypeInfo: Send + Sync,
|
QueryT::TypeInfo: Send + Sync,
|
||||||
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
|
||||||
|
|
|
@ -594,7 +594,7 @@ pub mod subscriptions {
|
||||||
#[serde(bound = "GraphQLPayload<S>: Deserialize<'de>")]
|
#[serde(bound = "GraphQLPayload<S>: Deserialize<'de>")]
|
||||||
struct WsPayload<S>
|
struct WsPayload<S>
|
||||||
where
|
where
|
||||||
S: ScalarValue + Send + Sync + 'static,
|
S: ScalarValue + Send + Sync,
|
||||||
{
|
{
|
||||||
id: Option<String>,
|
id: Option<String>,
|
||||||
#[serde(rename(deserialize = "type"))]
|
#[serde(rename(deserialize = "type"))]
|
||||||
|
@ -606,7 +606,7 @@ pub mod subscriptions {
|
||||||
#[serde(bound = "InputValue<S>: Deserialize<'de>")]
|
#[serde(bound = "InputValue<S>: Deserialize<'de>")]
|
||||||
struct GraphQLPayload<S>
|
struct GraphQLPayload<S>
|
||||||
where
|
where
|
||||||
S: ScalarValue + Send + Sync + 'static,
|
S: ScalarValue + Send + Sync,
|
||||||
{
|
{
|
||||||
variables: Option<InputValue<S>>,
|
variables: Option<InputValue<S>>,
|
||||||
extensions: Option<HashMap<String, String>>,
|
extensions: Option<HashMap<String, String>>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue