Short circuit ambiguous matches

This commit is contained in:
Robin Avery 2024-02-29 18:11:19 -05:00
parent 0ed49533d9
commit 5fd74583fa
No known key found for this signature in database
GPG Key ID: 633B2D5AB640375C
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ pub fn run(args: Args) -> Result<()> {
{
idx = Some(i);
count += 1;
if count > 1 {
break;
}
}
}
match (count, idx) {