1
Fork 0

remove OnlySign in favour of InvalidDigit

This commit is contained in:
Ethan Brierley 2020-10-06 22:42:33 +01:00
parent 8eaf0de1f4
commit 1e7e2e40e4
4 changed files with 11 additions and 14 deletions

View file

@ -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`"),