Skip to content

Commit 5b9c611

Browse files
authored
Relax redundant 'static lifetime bounds on ScalarValue in juniper_subscriptions::Coordinator (#680)
1 parent 7365b0f commit 5b9c611

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

juniper/src/http/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ where
134134
'req: 'a,
135135
'rn: 'a,
136136
'ctx: 'a,
137-
S: ScalarValue + Send + Sync + 'static,
137+
S: ScalarValue + Send + Sync,
138138
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
139139
QueryT::TypeInfo: Send + Sync,
140140
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,

juniper_subscriptions/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[package]
22
name = "juniper_subscriptions"
33
version = "0.14.2"
4+
edition = "2018"
45
authors = ["nWacky <[email protected]>"]
56
description = "Juniper SubscriptionCoordinator and SubscriptionConnection implementations"
67
license = "BSD-2-Clause"
78
documentation = "https://docs.rs/juniper_subscriptions"
89
repository = "https://github.com/graphql-rust/juniper"
9-
edition = "2018"
10-
1110

1211
[dependencies]
1312
futures = "0.3.1"

juniper_subscriptions/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use juniper::{
2525
/// - handles subscription start
2626
pub struct Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
2727
where
28-
S: ScalarValue + Send + Sync + 'static,
28+
S: ScalarValue + Send + Sync,
2929
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
3030
QueryT::TypeInfo: Send + Sync,
3131
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
@@ -40,7 +40,7 @@ where
4040
impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
4141
Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>
4242
where
43-
S: ScalarValue + Send + Sync + 'static,
43+
S: ScalarValue + Send + Sync,
4444
QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,
4545
QueryT::TypeInfo: Send + Sync,
4646
MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send + Sync,

juniper_warp/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ pub mod subscriptions {
594594
#[serde(bound = "GraphQLPayload<S>: Deserialize<'de>")]
595595
struct WsPayload<S>
596596
where
597-
S: ScalarValue + Send + Sync + 'static,
597+
S: ScalarValue + Send + Sync,
598598
{
599599
id: Option<String>,
600600
#[serde(rename(deserialize = "type"))]
@@ -606,7 +606,7 @@ pub mod subscriptions {
606606
#[serde(bound = "InputValue<S>: Deserialize<'de>")]
607607
struct GraphQLPayload<S>
608608
where
609-
S: ScalarValue + Send + Sync + 'static,
609+
S: ScalarValue + Send + Sync,
610610
{
611611
variables: Option<InputValue<S>>,
612612
extensions: Option<HashMap<String, String>>,

0 commit comments

Comments
 (0)