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 {
609609
610610 input. used_input_ids_recursive ( used_types, schema) ;
611611 }
612- type_id @ TypeId :: Scalar ( _) | type_id @ TypeId :: Enum ( _) => {
612+ type_id @ ( TypeId :: Scalar ( _) | TypeId :: Enum ( _) ) => {
613613 used_types. types . insert ( type_id) ;
614614 }
615615 _ => ( ) ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pub(super) fn validate_typename_presence(
66) -> Result < ( ) , QueryValidationError > {
77 for fragment in & query. query . fragments {
88 let type_id = match fragment. on {
9- id @ TypeId :: Interface ( _) | id @ TypeId :: Union ( _) => id,
9+ id @ ( TypeId :: Interface ( _) | TypeId :: Union ( _) ) => id,
1010 _ => continue ,
1111 } ;
1212
@@ -25,7 +25,7 @@ pub(super) fn validate_typename_presence(
2525 . selections ( )
2626 . filter_map ( |( selection_id, selection) | match selection {
2727 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 ( _) ) => {
2929 Some ( ( selection_id, id, & field. selection_set ) )
3030 }
3131 _ => None ,
You can’t perform that action at this time.
0 commit comments