Skip to content

Commit

Permalink
dice-mfg-msgs: Rewrite 'or pattern' as a range.
Browse files Browse the repository at this point in the history
  • Loading branch information
flihp committed Jul 28, 2023
1 parent 1c5f988 commit 00eab96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice-mfg-msgs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn validate_pdv2(s: &str) -> Result<(), PlatformIdError> {
return Err(PlatformIdError::Invalid { i, c });
}
}
17 | 18 | 19 => {
17..=19 => {
if c != 'R' {
return Err(PlatformIdError::Invalid { i, c });
}
Expand Down

0 comments on commit 00eab96

Please sign in to comment.