Change implementation of AnyRefExt for references to NetworkStream to require 'static lifetime

This commit is contained in:
Erik Hedvall
2014-12-16 00:07:07 +01:00
parent 9896bcc517
commit 02ecad33cd

View File

@@ -114,7 +114,7 @@ impl UncheckedBoxAnyDowncast for Box<NetworkStream + Send> {
}
}
impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'a) {
impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'static) {
#[inline]
fn is<T: 'static>(self) -> bool {
self.get_type_id() == TypeId::of::<T>()