Skip to content

Commit 4c7d5f0

Browse files
marc0derclaude
andcommitted
refactor: use wildcard patterns in current command match statements
Co-Authored-By: Claude <[email protected]>
1 parent 4fef5ad commit 4c7d5f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/current/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ fn main() {
3030
let current_version = get_current_version(sdkman_dir.to_owned(), &candidate);
3131
match current_version {
3232
Some(version) => println!("Using {} version {}", candidate.bold(), version.bold()),
33-
None => {
33+
_ => {
3434
eprintln!("No current version of {} configured.", candidate.bold());
3535
process::exit(1);
3636
}
3737
}
3838
}
39-
None => {
39+
_ => {
4040
// Show current version for all candidates
4141
let mut found_any = false;
4242
let mut candidates_with_versions = Vec::new();

0 commit comments

Comments
 (0)