From 29011d14d96da89039eee3c88a7362f282bfb25c Mon Sep 17 00:00:00 2001 From: gifnksm Date: Mon, 17 Nov 2014 22:38:12 +0900 Subject: [PATCH] std::from_str::FromStr -> std::str::FromStr --- benches/shootout-pidigits.rs | 2 +- src/bigint.rs | 6 ++---- src/rational.rs | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/benches/shootout-pidigits.rs b/benches/shootout-pidigits.rs index dad9590..5ea3147 100644 --- a/benches/shootout-pidigits.rs +++ b/benches/shootout-pidigits.rs @@ -41,7 +41,7 @@ extern crate num; extern crate test; -use std::from_str::FromStr; +use std::str::FromStr; use std::num::FromPrimitive; use test::Bencher; diff --git a/src/bigint.rs b/src/bigint.rs index 4eb9370..f895198 100644 --- a/src/bigint.rs +++ b/src/bigint.rs @@ -60,12 +60,10 @@ use rand::Rng; use std::{cmp, fmt, hash}; use std::default::Default; -use std::from_str::FromStr; use std::iter::{AdditiveIterator, MultiplicativeIterator}; use std::num::{Int, ToPrimitive, FromPrimitive}; use std::num::FromStrRadix; -use std::str; -use std::string::String; +use std::str::{mod, FromStr}; use std::{i64, u64}; use {Num, Unsigned, CheckedAdd, CheckedSub, CheckedMul, CheckedDiv, Signed, Zero, One}; @@ -1476,7 +1474,7 @@ mod biguint_tests { use super::{Plus, BigInt, RandBigInt, ToBigInt}; use std::cmp::{Less, Equal, Greater}; - use std::from_str::FromStr; + use std::str::FromStr; use std::i64; use std::num::FromStrRadix; use std::num::{ToPrimitive, FromPrimitive}; diff --git a/src/rational.rs b/src/rational.rs index 73fa0a9..e5875ad 100644 --- a/src/rational.rs +++ b/src/rational.rs @@ -14,7 +14,7 @@ use Integer; use std::cmp; use std::fmt; -use std::from_str::FromStr; +use std::str::FromStr; use std::num::{FromStrRadix, Float}; use std::iter::{AdditiveIterator, MultiplicativeIterator}; @@ -403,7 +403,7 @@ mod test { use super::{Ratio, Rational, BigRational}; use std::num::{FromPrimitive, Float}; - use std::from_str::FromStr; + use std::str::FromStr; use std::hash::hash; use std::i32; use {Zero, One, Signed};