@@ -88,10 +88,10 @@ impl TypeParser for CoreTypeParser {
8888 ) -> Result < String , Vec < TypeParserError > > {
8989 let source_cstr = BnString :: new ( source) ;
9090 let file_name_cstr = BnString :: new ( file_name) ;
91- let options: Vec < _ > = options. into_iter ( ) . map ( |o| o. to_cstr ( ) ) . collect ( ) ;
91+ let options: Vec < _ > = options. iter ( ) . map ( |o| o. to_cstr ( ) ) . collect ( ) ;
9292 let options_raw: Vec < * const c_char > = options. iter ( ) . map ( |o| o. as_ptr ( ) ) . collect ( ) ;
9393 let include_directories: Vec < _ > = include_directories
94- . into_iter ( )
94+ . iter ( )
9595 . map ( |d| d. clone ( ) . to_cstr ( ) )
9696 . collect ( ) ;
9797 let include_directories_raw: Vec < * const c_char > =
@@ -106,9 +106,9 @@ impl TypeParser for CoreTypeParser {
106106 file_name_cstr. as_ptr ( ) ,
107107 platform. handle ,
108108 existing_types. handle . as_ptr ( ) ,
109- options_raw. as_ptr ( ) as * const * const c_char ,
109+ options_raw. as_ptr ( ) ,
110110 options_raw. len ( ) ,
111- include_directories_raw. as_ptr ( ) as * const * const c_char ,
111+ include_directories_raw. as_ptr ( ) ,
112112 include_directories_raw. len ( ) ,
113113 & mut result,
114114 & mut errors,
@@ -137,10 +137,10 @@ impl TypeParser for CoreTypeParser {
137137 ) -> Result < TypeParserResult , Vec < TypeParserError > > {
138138 let source_cstr = BnString :: new ( source) ;
139139 let file_name_cstr = BnString :: new ( file_name) ;
140- let options: Vec < _ > = options. into_iter ( ) . map ( |o| o. to_cstr ( ) ) . collect ( ) ;
140+ let options: Vec < _ > = options. iter ( ) . map ( |o| o. to_cstr ( ) ) . collect ( ) ;
141141 let options_raw: Vec < * const c_char > = options. iter ( ) . map ( |o| o. as_ptr ( ) ) . collect ( ) ;
142142 let include_directories: Vec < _ > = include_directories
143- . into_iter ( )
143+ . iter ( )
144144 . map ( |d| d. clone ( ) . to_cstr ( ) )
145145 . collect ( ) ;
146146 let include_directories_raw: Vec < * const c_char > =
@@ -156,9 +156,9 @@ impl TypeParser for CoreTypeParser {
156156 file_name_cstr. as_ptr ( ) ,
157157 platform. handle ,
158158 existing_types. handle . as_ptr ( ) ,
159- options_raw. as_ptr ( ) as * const * const c_char ,
159+ options_raw. as_ptr ( ) ,
160160 options_raw. len ( ) ,
161- include_directories_raw. as_ptr ( ) as * const * const c_char ,
161+ include_directories_raw. as_ptr ( ) ,
162162 include_directories_raw. len ( ) ,
163163 auto_type_source. as_ptr ( ) ,
164164 & mut raw_result,
0 commit comments