File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
graphql_client_codegen/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ impl ResolvedVariable {
609
609
610
610
input. used_input_ids_recursive ( used_types, schema) ;
611
611
}
612
- type_id @ TypeId :: Scalar ( _) | type_id @ TypeId :: Enum ( _) => {
612
+ type_id @ ( TypeId :: Scalar ( _) | TypeId :: Enum ( _) ) => {
613
613
used_types. types . insert ( type_id) ;
614
614
}
615
615
_ => ( ) ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pub(super) fn validate_typename_presence(
6
6
) -> Result < ( ) , QueryValidationError > {
7
7
for fragment in & query. query . fragments {
8
8
let type_id = match fragment. on {
9
- id @ TypeId :: Interface ( _) | id @ TypeId :: Union ( _) => id,
9
+ id @ ( TypeId :: Interface ( _) | TypeId :: Union ( _) ) => id,
10
10
_ => continue ,
11
11
} ;
12
12
@@ -25,7 +25,7 @@ pub(super) fn validate_typename_presence(
25
25
. selections ( )
26
26
. filter_map ( |( selection_id, selection) | match selection {
27
27
Selection :: Field ( field) => match query. schema . get_field ( field. field_id ) . r#type . id {
28
- id @ TypeId :: Interface ( _) | id @ TypeId :: Union ( _) => {
28
+ id @ ( TypeId :: Interface ( _) | TypeId :: Union ( _) ) => {
29
29
Some ( ( selection_id, id, & field. selection_set ) )
30
30
}
31
31
_ => None ,
You can’t perform that action at this time.
0 commit comments