Skip to content

Commit

Permalink
Replace FromError with From
Browse files Browse the repository at this point in the history
As per rust-lang/rust#23879.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Apr 2, 2015
1 parent 1841c8a commit a00fe8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ use Integer;
use core::num::ParseIntError;

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

impl FromError<ParseIntError> for ParseBigIntError {
fn from_error(err: ParseIntError) -> ParseBigIntError {
impl From<ParseIntError> for ParseBigIntError {
fn from(err: ParseIntError) -> ParseBigIntError {
ParseBigIntError::ParseInt(err)
}
}
Expand Down

0 comments on commit a00fe8b

Please sign in to comment.