update to rust master

fixing usage of a Private trait as bounds for a public trait
This commit is contained in:
Sean McArthur
2014-09-24 19:43:24 -07:00
parent 67f2a87dc3
commit 3259f7dce9
3 changed files with 8 additions and 17 deletions

View File

@@ -6,14 +6,15 @@ use url::Url;
use method::{mod, Get, Post, Delete, Put, Patch, Head, Options};
use header::Headers;
use header::common::{mod, Host};
use net::{NetworkStream, HttpStream, WriteStatus, Fresh, Streaming};
use net::{NetworkStream, HttpStream, Fresh, Streaming};
use http::{HttpWriter, ThroughWriter, ChunkedWriter, SizedWriter, LINE_ENDING};
use version;
use {HttpResult, HttpUriError};
use client::Response;
/// A client request to a remote server.
pub struct Request<W: WriteStatus> {
pub struct Request<W> {
/// The target URI for this request.
pub url: Url,
@@ -25,7 +26,7 @@ pub struct Request<W: WriteStatus> {
method: method::Method,
}
impl<W: WriteStatus> Request<W> {
impl<W> Request<W> {
/// Read the Request headers.
#[inline]
pub fn headers(&self) -> &Headers { &self.headers }