diff --git a/http3/src/http3_quinn.rs b/http3/src/http3_quinn.rs index a261184a..4a3c7ae4 100644 --- a/http3/src/http3_quinn.rs +++ b/http3/src/http3_quinn.rs @@ -477,11 +477,10 @@ impl quic::RecvStream for RecvStream { } fn recv_id(&self) -> StreamId { - self.stream + u64::from(self.stream .as_ref() .unwrap() - .id() - .0 + .id()) .try_into() .expect("invalid stream id") } @@ -619,11 +618,10 @@ where } fn send_id(&self) -> StreamId { - self.stream + u64::from(self.stream .as_ref() .unwrap() - .id() - .0 + .id()) .try_into() .expect("invalid stream id") }