@@ -96,11 +96,11 @@ fn get_set_schema_from_file(schema_path: &std::path::Path) -> Schema {
9696
9797/// Generates Rust code given a path to a query file, a path to a schema file, and options.
9898pub fn generate_module_token_stream (
99- query_path : std:: path:: PathBuf ,
99+ query_path : & std:: path:: Path ,
100100 schema_path : & std:: path:: Path ,
101- options : GraphQLClientCodegenOptions ,
101+ options : & GraphQLClientCodegenOptions ,
102102) -> Result < TokenStream , BoxError > {
103- let query = get_set_query_from_file ( query_path. as_path ( ) ) ;
103+ let query = get_set_query_from_file ( query_path) ;
104104 let schema = get_set_schema_from_file ( schema_path) ;
105105
106106 generate_module_token_stream_inner ( & query, & schema, options)
@@ -110,7 +110,7 @@ pub fn generate_module_token_stream(
110110pub fn generate_module_token_stream_from_string (
111111 query_string : & str ,
112112 schema_path : & std:: path:: Path ,
113- options : GraphQLClientCodegenOptions ,
113+ options : & GraphQLClientCodegenOptions ,
114114) -> Result < TokenStream , BoxError > {
115115 let query = ( query_string. to_string ( ) , query_document ( query_string) ?) ;
116116 let schema = get_set_schema_from_file ( schema_path) ;
@@ -122,7 +122,7 @@ pub fn generate_module_token_stream_from_string(
122122fn generate_module_token_stream_inner (
123123 query : & ( String , QueryDocument ) ,
124124 schema : & Schema ,
125- options : GraphQLClientCodegenOptions ,
125+ options : & GraphQLClientCodegenOptions ,
126126) -> Result < TokenStream , BoxError > {
127127 let ( query_string, query_document) = query;
128128
@@ -157,7 +157,7 @@ fn generate_module_token_stream_inner(
157157 schema,
158158 resolved_query : & query,
159159 operation : & operation. 1 . name ,
160- options : & options ,
160+ options,
161161 }
162162 . to_token_stream ( ) ?;
163163 modules. push ( generated) ;
0 commit comments