@@ -10,7 +10,7 @@ use crate::{
10
10
} ,
11
11
schema:: { InputId , TypeId } ,
12
12
type_qualifiers:: GraphqlTypeQualifier ,
13
- GeneralError , GraphQLClientCodegenOptions ,
13
+ GraphQLClientCodegenOptions ,
14
14
} ;
15
15
use heck:: ToSnakeCase ;
16
16
use proc_macro2:: { Ident , Span , TokenStream } ;
@@ -23,7 +23,7 @@ pub(crate) fn response_for_query(
23
23
operation_id : OperationId ,
24
24
options : & GraphQLClientCodegenOptions ,
25
25
query : BoundQuery < ' _ > ,
26
- ) -> Result < TokenStream , GeneralError > {
26
+ ) -> TokenStream {
27
27
let serde = options. serde_path ( ) ;
28
28
29
29
let all_used_types = all_used_types ( operation_id, & query) ;
@@ -47,7 +47,7 @@ pub(crate) fn response_for_query(
47
47
let definitions =
48
48
render_response_data_fields ( operation_id, options, & query) . render ( & response_derives) ;
49
49
50
- let q = quote ! {
50
+ quote ! {
51
51
use #serde:: { Serialize , Deserialize } ;
52
52
use super :: * ;
53
53
@@ -71,9 +71,7 @@ pub(crate) fn response_for_query(
71
71
#( #fragment_definitions) *
72
72
73
73
#definitions
74
- } ;
75
-
76
- Ok ( q)
74
+ }
77
75
}
78
76
79
77
fn generate_variables_struct (
0 commit comments