Update mod.rs (#314)

Fixes #309
This commit is contained in:
est31 2019-08-10 16:42:47 +02:00 committed by GitHub
commit 624ca7624f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ impl EventLoop {
let new_stream_id = StreamId(self.next_stream_id.fetch_add(1, Ordering::Relaxed));
if new_stream_id.0 == usize::max_value() {
return Err(BuildStreamError::StreamIdOverflow);
panic!("number of streams used has overflowed usize");
}
let stream_inner = StreamInner {