File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,6 @@ fn build_graphql_client_derive_options(
54
54
) -> Result < GraphQLClientCodegenOptions , failure:: Error > {
55
55
let response_derives = attributes:: extract_attr ( input, "response_derives" ) . ok ( ) ;
56
56
57
- let selected_operation_name: String = attributes:: extract_attr ( input, "selected_operation" )
58
- . context ( "Extracting selected operation name" )
59
- . ok ( )
60
- . unwrap_or_else ( || input. ident . to_string ( ) ) ;
61
-
62
57
let mut options = GraphQLClientCodegenOptions :: new_default ( ) ;
63
58
options. set_query_file ( query_path) ;
64
59
@@ -73,7 +68,7 @@ fn build_graphql_client_derive_options(
73
68
74
69
options. set_struct_ident ( input. ident . clone ( ) ) ;
75
70
options. set_module_visibility ( input. vis . clone ( ) ) ;
76
- options. set_operation_name ( selected_operation_name ) ;
71
+ options. set_operation_name ( input . ident . to_string ( ) ) ;
77
72
78
73
Ok ( options)
79
74
}
You can’t perform that action at this time.
0 commit comments