Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Aug 23, 2024
1 parent fdb7b4d commit 5e0c84c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/compiler/nvcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,12 +838,12 @@ fn fold_env_vars_or_split_into_exe_and_args(

let args = match shlex::split(&line) {
Some(args) => args,
None => return Err(anyhow!("Could not parse shell line"))
None => return Err(anyhow!("Could not parse shell line")),
};

let (exe, args) = match args.split_first() {
Some(exe_and_args) => exe_and_args,
None => return Err(anyhow!("Could not split shell line"))
None => return Err(anyhow!("Could not split shell line")),
};

let env_path = env_vars
Expand Down
2 changes: 1 addition & 1 deletion tests/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ fn test_cuda_sccache_command(preprocessor_cache_mode: bool) {
match compiler.name {
"nvcc" => run_sccache_nvcc_cuda_command_tests(compiler, tempdir.path()),
"clang++" => run_sccache_clang_cuda_command_tests(compiler, tempdir.path()),
_ => {},
_ => {}
}
zero_stats();
}
Expand Down

0 comments on commit 5e0c84c

Please sign in to comment.