Skip to content

Commit 09fabed

Browse files
Kroisseam0d
authored andcommitted
Follow the latest changes up to 2014-03-23
related issues of mozilla/rust: - rust-lang/rust@0305ed5d22e4 std: Add Vec to the prelude already fixed in chris-morgan#69: - rust-lang/rust#12772 rename std::vec -> std::slice - rust-lang/rust#13028 rename std::vec_ng -> std::vec - rust-lang/rust#12907 std: Rename {push,read}_bytes to {push,read}_exact
1 parent 1d3edc5 commit 09fabed

File tree

9 files changed

+1
-13
lines changed

9 files changed

+1
-13
lines changed

src/examples/server/apache_fake/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
extern crate time;
88
extern crate http;
99

10-
use std::vec::Vec;
11-
1210
use std::io::net::ip::{SocketAddr, Ipv4Addr};
1311
use std::io::Writer;
1412

src/examples/server/request_uri/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
extern crate time;
1010
extern crate http;
1111

12-
use std::vec::Vec;
13-
1412
use std::io::net::ip::{SocketAddr, Ipv4Addr};
1513
use std::io::Writer;
1614

@@ -75,7 +73,7 @@ impl Server for RequestUriServer {
7573
},
7674
AbsoluteUri(ref url) => {
7775
println!("absoluteURI, {}", url.to_str());
78-
//path =
76+
//path =
7977
},
8078
AbsolutePath(ref url) => {
8179
println!("absolute path, {}", url.to_owned());

src/http/buffer.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use std::io::{IoResult, Stream};
44
use std::cmp::min;
5-
use std::vec::Vec;
65
use std::slice;
76
use std::num::ToStrRadix;
87

src/http/headers/accept_ranges.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! The Accept-Ranges request header, defined in RFC 2616, Section 14.5.
22
3-
use std::vec::Vec;
43
use std::io::IoResult;
54
use std::ascii::StrAsciiExt;
65

src/http/headers/connection.rs

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ impl super::HeaderConvertible for Connection {
5858

5959
#[test]
6060
fn test_connection() {
61-
use std::vec::Vec;
6261
use headers::test_utils::{assert_conversion_correct,
6362
assert_interpretation_correct,
6463
assert_invalid};

src/http/headers/content_type.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! The Content-Type entity header, defined in RFC 2616, Section 14.17.
22
use headers::serialization_utils::{push_parameters, WriterUtil};
3-
use std::vec::Vec;
43
use std::io::IoResult;
54
use std::fmt;
65

src/http/headers/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! unknown headers are stored in a map in the traditional way.
66
77
use url::Url;
8-
use std::vec::Vec;
98
use std::io::IoResult;
109
use time::{Tm, strptime};
1110
use rfc2616::{is_token_item, is_separator, CR, LF, SP, HT, COLON};
@@ -872,7 +871,6 @@ macro_rules! headers_mod {
872871
#[$attr]
873872
874873
#[allow(unused_imports)]
875-
use std::vec::Vec;
876874
use std::io::IoResult;
877875
use time;
878876
use collections::treemap::{TreeMap, Entries};

src/http/headers/serialization_utils.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Utility functions for assisting with conversion of headers from and to the HTTP text form.
22
3-
use std::vec::Vec;
43
use std::slice;
54
use std::ascii::Ascii;
65
use std::io::IoResult;

src/http/headers/transfer_encoding.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//!
33
//! Transfer-Encoding = "Transfer-Encoding" ":" 1#transfer-coding
44
5-
use std::vec::Vec;
65
use std::ascii::StrAsciiExt;
76
use std::io::IoResult;
87
use headers::serialization_utils::{WriterUtil, push_parameters};

0 commit comments

Comments
 (0)