File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
graphql_client_codegen/src Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,7 @@ pub(crate) fn response_for_query(
70
70
71
71
let response_data_fields = {
72
72
let root_name = operation. root_name ( & context. schema ) ;
73
- let opt_definition = context
74
- . schema
75
- . objects
76
- . get ( & root_name) ;
73
+ let opt_definition = context. schema . objects . get ( & root_name) ;
77
74
let definition = if let Some ( definition) = opt_definition {
78
75
definition
79
76
} else {
Original file line number Diff line number Diff line change @@ -23,10 +23,7 @@ pub struct Operation<'query> {
23
23
}
24
24
25
25
impl < ' query > Operation < ' query > {
26
- pub ( crate ) fn root_name < ' schema > (
27
- & self ,
28
- schema : & ' schema :: schema:: Schema ,
29
- ) -> & ' schema str {
26
+ pub ( crate ) fn root_name < ' schema > ( & self , schema : & ' schema :: schema:: Schema ) -> & ' schema str {
30
27
match self . operation_type {
31
28
OperationType :: Query => schema. query_type . unwrap_or ( "Query" ) ,
32
29
OperationType :: Mutation => schema. mutation_type . unwrap_or ( "Mutation" ) ,
You can’t perform that action at this time.
0 commit comments