diff --git a/src/net.rs b/src/net.rs index 7e9e2a91..c5fabf0c 100644 --- a/src/net.rs +++ b/src/net.rs @@ -114,7 +114,7 @@ impl UncheckedBoxAnyDowncast for Box { } } -impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'a) { +impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'static) { #[inline] fn is(self) -> bool { self.get_type_id() == TypeId::of::()