Skip to content

Update to latest Rust #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! are already provided, such as `Host`, `ContentType`, `UserAgent`, and others.
use std::any::Any;
use std::ascii::{AsciiExt, AsciiCast};
use std::borrow::{Borrowed, Owned};
use std::borrow::Cow::{Borrowed, Owned};
use std::fmt::{mod, Show};
use std::intrinsics::TypeId;
use std::raw::TraitObject;
Expand Down
2 changes: 1 addition & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Pieces pertaining to the HTTP message protocol.
use std::borrow::{Borrowed, Owned};
use std::borrow::Cow::{Borrowed, Owned};
use std::cmp::min;
use std::fmt;
use std::io::{mod, Reader, IoResult, BufWriter};
Expand Down
5 changes: 3 additions & 2 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ use std::raw::{mod, TraitObject};
use std::sync::{Arc, Mutex};

use uany::UncheckedBoxAnyDowncast;
use openssl::ssl::{SslStream, SslContext, Sslv23};
use openssl::ssl::{SslStream, SslContext};
use openssl::ssl::SslMethod::Sslv23;
use openssl::ssl::error::{SslError, StreamError, OpenSslErrors, SslSessionClosed};

use self::HttpStream::{Http, Https};
Expand Down Expand Up @@ -103,7 +104,7 @@ impl UncheckedBoxAnyDowncast for Box<NetworkStream + Send> {
}
}

impl<'a> AnyRefExt<'a> for &'a NetworkStream + 'a {
impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'a) {
#[inline]
fn is<T: 'static>(self) -> bool {
self.get_type_id() == TypeId::of::<T>()
Expand Down
2 changes: 1 addition & 1 deletion src/server/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use http::HttpReader;
use http::HttpReader::{SizedReader, ChunkedReader, EmptyReader};
use uri::RequestUri;

pub type InternalReader<'a> = &'a mut Reader + 'a;
pub type InternalReader<'a> = &'a mut (Reader + 'a);

/// A request bundles several parts of an incoming `NetworkStream`, given to a `Handler`.
pub struct Request<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/server/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use status;
use net::{Fresh, Streaming};
use version;

pub type InternalWriter<'a> = &'a mut Writer + 'a;
pub type InternalWriter<'a> = &'a mut (Writer + 'a);

/// The outgoing half for a Tcp connection, created by a `Server` and given to a `Handler`.
pub struct Response<'a, W = Fresh> {
Expand Down