Skip to content

Commit a00fe8b

Browse files
committed
Replace FromError with From
As per rust-lang/rust#23879. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
1 parent 1841c8a commit a00fe8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bigint.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ use Integer;
6565
use core::num::ParseIntError;
6666

6767
use std::default::Default;
68-
use std::error::{Error, FromError};
68+
use std::error::Error;
6969
use std::iter::repeat;
7070
use std::num::{Int, ToPrimitive, FromPrimitive, FromStrRadix};
7171
use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Mul, Neg, Rem, Shl, Shr, Sub};
@@ -1769,8 +1769,8 @@ impl Error for ParseBigIntError {
17691769
fn description(&self) -> &str { "failed to parse bigint/biguint" }
17701770
}
17711771

1772-
impl FromError<ParseIntError> for ParseBigIntError {
1773-
fn from_error(err: ParseIntError) -> ParseBigIntError {
1772+
impl From<ParseIntError> for ParseBigIntError {
1773+
fn from(err: ParseIntError) -> ParseBigIntError {
17741774
ParseBigIntError::ParseInt(err)
17751775
}
17761776
}

0 commit comments

Comments
 (0)