We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if matches!
match
1 parent 46d1cc3 commit c5eb8fbCopy full SHA for c5eb8fb
src/main.rs
@@ -808,13 +808,13 @@ fn decide_action_for(
808
};
809
info!("input_meta: {:?}", input_meta);
810
811
- let toolchain_version = args.toolchain_version.clone().or_else(|| {
812
- if matches!(args.build_kind, BuildKind::Bench) {
813
- Some("nightly".into())
814
- } else {
815
- None
816
- }
817
- });
+ let toolchain_version = args
+ .toolchain_version
+ .clone()
+ .or_else(|| match args.build_kind {
+ BuildKind::Bench => Some("nightly".into()),
+ _ => None,
+ });
818
819
let mut action = InputAction {
820
cargo_output: args.cargo_output,
0 commit comments