Update to latest Rust

Signed-off-by: Peter Atashian <retep998@gmail.com>
This commit is contained in:
Peter Atashian
2014-11-28 02:22:21 -05:00
parent 00a1452111
commit 00a76cee03
5 changed files with 7 additions and 6 deletions

View File

@@ -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};
@@ -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>()