Skip to content

Commit c5eb8fb

Browse files
Replace if matches! with match
1 parent 46d1cc3 commit c5eb8fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -808,13 +808,13 @@ fn decide_action_for(
808808
};
809809
info!("input_meta: {:?}", input_meta);
810810

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-
});
811+
let toolchain_version = args
812+
.toolchain_version
813+
.clone()
814+
.or_else(|| match args.build_kind {
815+
BuildKind::Bench => Some("nightly".into()),
816+
_ => None,
817+
});
818818

819819
let mut action = InputAction {
820820
cargo_output: args.cargo_output,

0 commit comments

Comments
 (0)