Change implementation of AnyRefExt for references to NetworkStream to require 'static lifetime
This commit is contained in:
		| @@ -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] |     #[inline] | ||||||
|     fn is<T: 'static>(self) -> bool { |     fn is<T: 'static>(self) -> bool { | ||||||
|         self.get_type_id() == TypeId::of::<T>() |         self.get_type_id() == TypeId::of::<T>() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user