Replace FromError with From
As per https://github.com/rust-lang/rust/pull/23879. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
1841c8ace4
commit
a00fe8b700
|
@ -65,7 +65,7 @@ use Integer;
|
||||||
use core::num::ParseIntError;
|
use core::num::ParseIntError;
|
||||||
|
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
use std::error::{Error, FromError};
|
use std::error::Error;
|
||||||
use std::iter::repeat;
|
use std::iter::repeat;
|
||||||
use std::num::{Int, ToPrimitive, FromPrimitive, FromStrRadix};
|
use std::num::{Int, ToPrimitive, FromPrimitive, FromStrRadix};
|
||||||
use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Mul, Neg, Rem, Shl, Shr, Sub};
|
use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Mul, Neg, Rem, Shl, Shr, Sub};
|
||||||
|
@ -1769,8 +1769,8 @@ impl Error for ParseBigIntError {
|
||||||
fn description(&self) -> &str { "failed to parse bigint/biguint" }
|
fn description(&self) -> &str { "failed to parse bigint/biguint" }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FromError<ParseIntError> for ParseBigIntError {
|
impl From<ParseIntError> for ParseBigIntError {
|
||||||
fn from_error(err: ParseIntError) -> ParseBigIntError {
|
fn from(err: ParseIntError) -> ParseBigIntError {
|
||||||
ParseBigIntError::ParseInt(err)
|
ParseBigIntError::ParseInt(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue