Skip to content

Commit ed6face

Browse files
committed
Merge pull request #154 from retep998/master
Update to latest Rust
2 parents cac2a10 + 00a76ce commit ed6face

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

src/header/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! are already provided, such as `Host`, `ContentType`, `UserAgent`, and others.
77
use std::any::Any;
88
use std::ascii::{AsciiExt, AsciiCast};
9-
use std::borrow::{Borrowed, Owned};
9+
use std::borrow::Cow::{Borrowed, Owned};
1010
use std::fmt::{mod, Show};
1111
use std::intrinsics::TypeId;
1212
use std::raw::TraitObject;

src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Pieces pertaining to the HTTP message protocol.
2-
use std::borrow::{Borrowed, Owned};
2+
use std::borrow::Cow::{Borrowed, Owned};
33
use std::cmp::min;
44
use std::fmt;
55
use std::io::{mod, Reader, IoResult, BufWriter};

src/net.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ use std::raw::{mod, TraitObject};
1212
use std::sync::{Arc, Mutex};
1313

1414
use uany::UncheckedBoxAnyDowncast;
15-
use openssl::ssl::{SslStream, SslContext, Sslv23};
15+
use openssl::ssl::{SslStream, SslContext};
16+
use openssl::ssl::SslMethod::Sslv23;
1617
use openssl::ssl::error::{SslError, StreamError, OpenSslErrors, SslSessionClosed};
1718

1819
use self::HttpStream::{Http, Https};
@@ -103,7 +104,7 @@ impl UncheckedBoxAnyDowncast for Box<NetworkStream + Send> {
103104
}
104105
}
105106

106-
impl<'a> AnyRefExt<'a> for &'a NetworkStream + 'a {
107+
impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'a) {
107108
#[inline]
108109
fn is<T: 'static>(self) -> bool {
109110
self.get_type_id() == TypeId::of::<T>()

src/server/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use http::HttpReader;
1515
use http::HttpReader::{SizedReader, ChunkedReader, EmptyReader};
1616
use uri::RequestUri;
1717

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

2020
/// A request bundles several parts of an incoming `NetworkStream`, given to a `Handler`.
2121
pub struct Request<'a> {

src/server/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use status;
1414
use net::{Fresh, Streaming};
1515
use version;
1616

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

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

0 commit comments

Comments
 (0)