Skip to content

Commit 117b052

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

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/driver.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,7 @@ pub fn main() {
201201
for arg in args.iter() {
202202
if let Some(arg_file_path) = arg.strip_prefix("@") {
203203
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();
204+
let split_arg_file: Vec<String> = arg_file.split("\n").map(|s| s.to_string()).collect();
208205
if arg_value(&split_arg_file, "--sysroot", |_| true).is_some() {
209206
return true;
210207
}

0 commit comments

Comments
 (0)