Skip to content

Commit ab14bf6

Browse files
committed
make TimeoutTrait depend on GetRemote
can't implement it without it anyway; that way the generic impl covers all possibilities ("sealed" in another way).
1 parent 78fe17b commit ab14bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeout_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use remote::GetRemote;
77

88
/// `futures::Stream` extension to simplify building
99
/// [`TimeoutStream`](struct.TimeoutStream.html)
10-
pub trait TimeoutTrait: futures::Stream+Sized {
10+
pub trait TimeoutTrait: futures::Stream+GetRemote+Sized {
1111
/// Create new [`TimeoutStream`](struct.TimeoutStream.html)
1212
fn timeout(self, duration: Duration) -> io::Result<TimeoutStream<Self>>;
1313
}

0 commit comments

Comments
 (0)