Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev committed Oct 11, 2023
1 parent cbabc39 commit a93bb87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@ where
}
}

#[allow(clippy::too_many_arguments)]
/// If `must_be_rust` is `true` and verification of `rustc_executable` fails it returns error,
/// if `must_be_rust` is `false` returns `None` if verification failed or `Some((Compiler, CompilerProxy))` if it succeeded.
async fn verified_rust_compiler<T>(
Expand Down Expand Up @@ -1105,7 +1106,7 @@ where
Err(e) => {
if !must_be_rust {
// This is ok as we are likely c compiler
return Ok(None);
Ok(None)
} else {
// This must be rustc but verification failed so this is hard fail.
Err(e)
Expand Down

0 comments on commit a93bb87

Please sign in to comment.