File tree Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ macro_rules! __juniper_impl_trait {
7
7
}
8
8
) => {
9
9
impl <$( $other, ) * > $crate:: $impl_trait<$crate:: DefaultScalarValue > for $name {
10
- $( $body) *
10
+ $( $body) +
11
11
}
12
12
} ;
13
13
(
@@ -26,7 +26,7 @@ macro_rules! __juniper_impl_trait {
26
26
27
27
(
28
28
impl < <$generic: tt $( : $bound: tt) * > $( , $other: tt) * > $impl_trait: tt for $name: ty {
29
- $( $body: tt) *
29
+ $( $body: tt) +
30
30
}
31
31
) => {
32
32
impl <$( $other, ) * $generic $( : $bound) * > $crate:: $impl_trait<$generic> for $name
@@ -50,17 +50,17 @@ macro_rules! __juniper_impl_trait {
50
50
$generic: $crate:: ScalarValue ,
51
51
for <' __b> & ' __b $generic: $crate:: ScalarRefValue <' __b>,
52
52
{
53
- $( $body) *
53
+ $( $body) +
54
54
}
55
55
} ;
56
56
57
57
(
58
58
impl <$scalar: ty $( , $other: tt ) * > $impl_trait: tt for $name: ty {
59
- $( $body: tt) *
59
+ $( $body: tt) +
60
60
}
61
61
) => {
62
62
impl <$( $other, ) * > $crate:: $impl_trait<$scalar> for $name {
63
- $( $body) *
63
+ $( $body) +
64
64
}
65
65
} ;
66
66
(
Original file line number Diff line number Diff line change
1
+ use std:: marker:: PhantomData ;
2
+
3
+ use crate :: {
4
+ ast:: InputValue ,
5
+ schema:: model:: RootNode ,
6
+ types:: scalars:: EmptyMutation ,
7
+ value:: { DefaultScalarValue , Object , Value } ,
8
+ } ;
9
+
1
10
/*
2
11
3
12
Syntax to validate:
@@ -35,6 +44,16 @@ enum WithGenerics<T> {
35
44
enum DescriptionFirst {
36
45
Concrete ( Concrete ) ,
37
46
}
47
+ enum ResolversFirst {
48
+ Concrete ( Concrete ) ,
49
+ }
50
+
51
+ enum CommasWithTrailing {
52
+ Concrete ( Concrete ) ,
53
+ }
54
+ enum ResolversWithTrailingComma {
55
+ Concrete ( Concrete ) ,
56
+ }
38
57
39
58
struct Root ;
40
59
Original file line number Diff line number Diff line change @@ -41,15 +41,14 @@ Check the LICENSE file for details.
41
41
#![ doc( html_root_url = "https://docs.rs/juniper_warp/0.2.0" ) ]
42
42
43
43
use futures:: { future:: poll_fn, Future } ;
44
+ use juniper:: { DefaultScalarValue , InputValue , ScalarRefValue , ScalarValue } ;
44
45
use serde:: Deserialize ;
45
46
use std:: sync:: Arc ;
46
47
use warp:: { filters:: BoxedFilter , Filter } ;
47
48
48
49
#[ cfg( feature = "async" ) ]
49
50
use futures03:: future:: { FutureExt , TryFutureExt } ;
50
51
51
- use juniper:: { DefaultScalarValue , InputValue , ScalarRefValue , ScalarValue } ;
52
-
53
52
#[ derive( Debug , serde_derive:: Deserialize , PartialEq ) ]
54
53
#[ serde( untagged) ]
55
54
#[ serde( bound = "InputValue<S>: Deserialize<'de>" ) ]
You can’t perform that action at this time.
0 commit comments