1
Fork 0

Bring char along with InvalidDigit

This commit is contained in:
Ethan Brierley 2020-10-06 19:05:25 +01:00
parent c027844795
commit 83d294f06a
5 changed files with 12 additions and 12 deletions

View file

@ -52,7 +52,7 @@ fn update_limit(
IntErrorKind::Empty | IntErrorKind::OnlySign => {
"`limit` must be a non-negative integer"
}
IntErrorKind::InvalidDigit => "not a valid integer",
IntErrorKind::InvalidDigit(_) => "not a valid integer",
IntErrorKind::NegOverflow => bug!("`limit` should never underflow"),
IntErrorKind::Zero => bug!("zero is a valid `limit`"),
kind => bug!("unimplemented IntErrorKind variant: {:?}", kind),