Bring char along with InvalidDigit
This commit is contained in:
parent
c027844795
commit
83d294f06a
5 changed files with 12 additions and 12 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue