File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ use rustc_session::EarlyDiagCtxt;
22
22
use rustc_span:: symbol:: Symbol ;
23
23
24
24
use std:: env;
25
- use std:: fs:: { read_to_string, File } ;
26
- use std:: io:: { self , BufRead } ;
25
+ use std:: fs:: read_to_string;
27
26
use std:: ops:: Deref ;
28
27
use std:: path:: Path ;
29
28
use std:: process:: exit;
@@ -201,10 +200,7 @@ pub fn main() {
201
200
for arg in args. iter ( ) {
202
201
if let Some ( arg_file_path) = arg. strip_prefix ( "@" ) {
203
202
if let Ok ( arg_file) = read_to_string ( arg_file_path) {
204
- let split_arg_file: Vec < String > = arg_file
205
- . split ( "\n " )
206
- . map ( |s| s. to_string ( ) )
207
- . collect ( ) ;
203
+ let split_arg_file: Vec < String > = arg_file. split ( "\n " ) . map ( |s| s. to_string ( ) ) . collect ( ) ;
208
204
if arg_value ( & split_arg_file, "--sysroot" , |_| true ) . is_some ( ) {
209
205
return true ;
210
206
}
You can’t perform that action at this time.
0 commit comments