File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,11 @@ use crate::parse::{ClangItemParser, ParseError};
77
77
use crate :: regex_set:: RegexSet ;
78
78
79
79
use std:: borrow:: Cow ;
80
+ use std:: env;
80
81
use std:: fs:: { File , OpenOptions } ;
81
82
use std:: io:: { self , Write } ;
82
83
use std:: path:: { Path , PathBuf } ;
83
84
use std:: process:: { Command , Stdio } ;
84
- use std:: { env, iter} ;
85
85
86
86
// Some convenient typedefs for a fast hash map and hash set.
87
87
type HashMap < K , V > = :: rustc_hash:: FxHashMap < K , V > ;
@@ -1539,10 +1539,10 @@ impl Builder {
1539
1539
self . options . input_header = self . input_headers . pop ( ) ;
1540
1540
self . options . extra_input_headers = self . input_headers ;
1541
1541
self . options . clang_args . extend (
1542
- self . options . extra_input_headers . iter ( ) . flat_map ( |header| {
1543
- iter :: once ( "-include" . into ( ) )
1544
- . chain ( iter:: once ( header . to_string ( ) ) )
1545
- } ) ,
1542
+ self . options
1543
+ . extra_input_headers
1544
+ . iter ( )
1545
+ . flat_map ( |header| [ "-include" . into ( ) , header . to_string ( ) ] ) ,
1546
1546
) ;
1547
1547
1548
1548
self . state . input_unsaved_files . extend (
You can’t perform that action at this time.
0 commit comments