Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Nov 9, 2021
1 parent ccab162 commit df817a8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/compiler/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ mod test {
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "\n\ngcc", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
Expand All @@ -1176,7 +1176,7 @@ mod test {
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "clang\n", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
Expand Down Expand Up @@ -1204,7 +1204,7 @@ mod test {
&creator,
Ok(MockChild::new(exit_status(0), &stdout, &String::new())),
);
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
Expand All @@ -1218,7 +1218,7 @@ mod test {
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "nvcc\n", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
Expand Down Expand Up @@ -1256,7 +1256,7 @@ LLVM version: 6.0",
next_command(&creator, Ok(MockChild::new(exit_status(0), &sysroot, "")));
next_command(&creator, Ok(MockChild::new(exit_status(0), &sysroot, "")));
next_command(&creator, Ok(MockChild::new(exit_status(0), &sysroot, "")));
let c = detect_compiler(creator, &rustc, f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &rustc, f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
Expand All @@ -1270,7 +1270,7 @@ LLVM version: 6.0",
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "\ndiab\n", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
Expand All @@ -1292,7 +1292,7 @@ LLVM version: 6.0",
"/foo/bar".as_ref(),
f.tempdir.path(),
&[],
&pool,
pool,
None
)
.wait()
Expand All @@ -1311,7 +1311,7 @@ LLVM version: 6.0",
"/foo/bar".as_ref(),
f.tempdir.path(),
&[],
&pool,
pool,
None
)
.wait()
Expand All @@ -1337,7 +1337,7 @@ LLVM version: 6.0",
&f.bins[0],
f.tempdir.path(),
&[],
&pool,
pool,
None,
)
.wait()
Expand All @@ -1352,7 +1352,7 @@ LLVM version: 6.0",
o => panic!("Bad result from parse_arguments: {:?}", o),
};
hasher
.generate_hash_key(&creator, cwd.to_path_buf(), vec![], false, &pool, false)
.generate_hash_key(&creator, cwd.to_path_buf(), vec![], false, pool, false)
.wait()
.unwrap()
})
Expand All @@ -1369,7 +1369,7 @@ LLVM version: 6.0",
let f = TestFixture::new();
// Pretend to be GCC.
next_command(&creator, Ok(MockChild::new(exit_status(0), "gcc", "")));
let c = get_compiler_info(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = get_compiler_info(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
Expand Down

0 comments on commit df817a8

Please sign in to comment.