Skip to content

Commit 02ecad3

Browse files
committed
Change implementation of AnyRefExt for references to NetworkStream to require 'static lifetime
1 parent 9896bcc commit 02ecad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl UncheckedBoxAnyDowncast for Box<NetworkStream + Send> {
114114
}
115115
}
116116

117-
impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'a) {
117+
impl<'a> AnyRefExt<'a> for &'a (NetworkStream + 'static) {
118118
#[inline]
119119
fn is<T: 'static>(self) -> bool {
120120
self.get_type_id() == TypeId::of::<T>()

0 commit comments

Comments
 (0)