File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -380,24 +380,18 @@ impl<'a> Session<'a> {
380380
381381 // Build arguments to Run()
382382
383- let input_names : Vec < String > = self . inputs . iter ( ) . map ( |input| input . name . clone ( ) ) . collect ( ) ;
384- let input_names_cstring : Vec < CString > = input_names
383+ let input_names_ptr : Vec < * const i8 > = self
384+ . inputs
385385 . iter ( )
386- . cloned ( )
386+ . map ( |input| input . name . clone ( ) )
387387 . map ( |n| CString :: new ( n) . unwrap ( ) )
388- . collect ( ) ;
389- let input_names_ptr: Vec < * const i8 > = input_names_cstring
390- . into_iter ( )
391388 . map ( |n| n. into_raw ( ) as * const i8 )
392389 . collect ( ) ;
393390
394- let output_names : Vec < String > = self
391+ let output_names_cstring : Vec < CString > = self
395392 . outputs
396393 . iter ( )
397394 . map ( |output| output. name . clone ( ) )
398- . collect ( ) ;
399- let output_names_cstring: Vec < CString > = output_names
400- . into_iter ( )
401395 . map ( |n| CString :: new ( n) . unwrap ( ) )
402396 . collect ( ) ;
403397 let output_names_ptr: Vec < * const i8 > = output_names_cstring
You can’t perform that action at this time.
0 commit comments