Skip to content

Commit

Permalink
Don't let TimeoutStreams be created if they won't implement Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Riley Trautman committed Jan 11, 2018
1 parent 4b6ac5f commit 81c0b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ where

impl<S> TimeoutStream<S>
where
S: Stream,
S: Stream<Error = Error>,
{
/// Add a timeout to a stream
pub fn new(stream: S, duration: Duration) -> Self {
Expand Down

0 comments on commit 81c0b22

Please sign in to comment.