We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa7b86 commit aa3490aCopy full SHA for aa3490a
src/driver.rs
@@ -22,8 +22,7 @@ use rustc_session::EarlyDiagCtxt;
22
use rustc_span::symbol::Symbol;
23
24
use std::env;
25
-use std::fs::{read_to_string, File};
26
-use std::io::{self, BufRead};
+use std::fs::read_to_string;
27
use std::ops::Deref;
28
use std::path::Path;
29
use std::process::exit;
@@ -201,10 +200,7 @@ pub fn main() {
201
200
for arg in args.iter() {
202
if let Some(arg_file_path) = arg.strip_prefix("@") {
203
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();
+ let split_arg_file: Vec<String> = arg_file.split("\n").map(|s| s.to_string()).collect();
208
if arg_value(&split_arg_file, "--sysroot", |_| true).is_some() {
209
return true;
210
}
0 commit comments