remove OnlySign in favour of InvalidDigit
This commit is contained in:
parent
8eaf0de1f4
commit
1e7e2e40e4
4 changed files with 11 additions and 14 deletions
|
@ -49,9 +49,7 @@ fn update_limit(
|
|||
|
||||
let error_str = match e.kind() {
|
||||
IntErrorKind::PosOverflow => "`limit` is too large",
|
||||
IntErrorKind::Empty | IntErrorKind::OnlySign => {
|
||||
"`limit` must be a non-negative integer"
|
||||
}
|
||||
IntErrorKind::Empty => "`limit` must be a non-negative integer",
|
||||
IntErrorKind::InvalidDigit(_) => "not a valid integer",
|
||||
IntErrorKind::NegOverflow => bug!("`limit` should never underflow"),
|
||||
IntErrorKind::Zero => bug!("zero is a valid `limit`"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue