Skip to content

Commit aa3490a

Browse files
author
Vinh Tran
committed
Format
1 parent 0aa7b86 commit aa3490a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/driver.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ use rustc_session::EarlyDiagCtxt;
2222
use rustc_span::symbol::Symbol;
2323

2424
use std::env;
25-
use std::fs::{read_to_string, File};
26-
use std::io::{self, BufRead};
25+
use std::fs::read_to_string;
2726
use std::ops::Deref;
2827
use std::path::Path;
2928
use std::process::exit;
@@ -201,10 +200,7 @@ pub fn main() {
201200
for arg in args.iter() {
202201
if let Some(arg_file_path) = arg.strip_prefix("@") {
203202
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();
208204
if arg_value(&split_arg_file, "--sysroot", |_| true).is_some() {
209205
return true;
210206
}

0 commit comments

Comments
 (0)