Skip to content

Commit b77eb3f

Browse files
committed
Rust update: FromStr is gone from the prelude.
rust-lang/rust#12485
1 parent a342d75 commit b77eb3f

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

doc/client-plan.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use of string typing for headers::
4444
use http::method::Get;
4545
use extra::url::Url;
4646

47-
let mut request = Request::new(Get, FromStr::from_str("http://rust-lang.org"));
47+
let mut request = Request::new(Get, from_str("http://rust-lang.org"));
4848
request.headers.insert(~"Connection", ~"close");
4949
request.headers.insert(~"Referer", ~"https://google.com/");
5050
let mut response = request.send();

src/http/method.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std::fmt;
2+
use std::from_str::FromStr;
23

34
/// HTTP methods, as defined in RFC 2616, §5.1.1.
45
///

src/http/rfc2616.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ pub fn is_separator(o: u8) -> bool {
142142

143143
mod content_coding {
144144
use std::fmt;
145+
use std::from_str::FromStr;
145146

146147
/// Content-coding value tokens
147148
pub enum ValueToken {

src/http/server/request.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use extra::url::Url;
22
use method::{Method, Options};
33
use status;
4+
use std::from_str::FromStr;
45
use std::io::{Stream, IoResult};
56
use std::io::net::ip::SocketAddr;
67
use std::io::net::tcp::TcpStream;

0 commit comments

Comments
 (0)