Relax redundant 'static lifetime bounds on ScalarValue in juniper_subscriptions::Coordinator ()

This commit is contained in:
Kai Ren 2020-06-11 10:27:58 +03:00 committed by GitHub
parent 7365b0fdd8
commit 5b9c6111f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions
juniper/src/http
juniper_subscriptions
juniper_warp/src

View file

@ -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,

View file

@ -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"

View file

@ -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,

View file

@ -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>>,