Update mod.rs

Fixes #309
This commit is contained in:
Richard Dodd (dodj) 2019-08-04 11:49:15 +01:00 committed by GitHub
parent a04d869eaa
commit 684aa6392a
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 {