Skip to content

Commit 20ff578

Browse files
jgillichseanmonstar
authored andcommitted
std::from_str has been moved to std::str
1 parent 5264e04 commit 20ff578

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! Example mime string: `text/plain;charset=utf-8`
99
//!
1010
//! ```rust
11-
//! # use std::from_str::FromStr;
11+
//! # use std::str::FromStr;
1212
//! use mime::{Mime, Text, Plain, Charset, Utf8};
1313
//! let mime: Mime = FromStr::from_str("text/plain;charset=utf-8").unwrap();
1414
//! assert_eq!(mime, Mime(Text, Plain, vec![(Charset, Utf8)]));
@@ -28,7 +28,7 @@ extern crate test;
2828
use std::ascii::AsciiExt;
2929
use std::cmp::Equiv;
3030
use std::fmt;
31-
use std::from_str::FromStr;
31+
use std::str::FromStr;
3232
use std::iter::Enumerate;
3333
use std::str::Chars;
3434

@@ -53,7 +53,7 @@ macro_rules! inspect(
5353
/// This improves things so you use match without Strings:
5454
///
5555
/// ```rust
56-
/// use std::from_str::from_str;
56+
/// use std::str::from_str;
5757
/// use mime::{Mime, Application, Json};
5858
///
5959
/// let mime: mime::Mime = from_str("application/json").unwrap();
@@ -363,7 +363,7 @@ fn fmt_param(param: &Param, fmt: &mut fmt::Formatter) -> fmt::Result {
363363

364364
#[cfg(test)]
365365
mod tests {
366-
use std::from_str::{FromStr, from_str};
366+
use std::str::{FromStr, from_str};
367367
use test::Bencher;
368368
use super::{Mime, Text, Plain, Charset, Utf8, AttrExt, ValueExt};
369369

0 commit comments

Comments
 (0)