File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ license = "MIT"
15
15
[dependencies ]
16
16
h3 = { version = " 0.0.7" , path = " ../h3" }
17
17
bytes = " 1"
18
- quinn = { version = " 0.11" , default-features = false , features = [
18
+ quinn = { version = " 0.11.7 " , default-features = false , features = [
19
19
" futures-io" ,
20
20
] }
21
21
tokio-util = { version = " 0.7.9" }
@@ -26,4 +26,4 @@ tracing = { version = "0.1.40", optional = true }
26
26
27
27
[features ]
28
28
tracing = [" dep:tracing" ]
29
- datagram = [" dep:h3-datagram" ]
29
+ datagram = [" dep:h3-datagram" ]
Original file line number Diff line number Diff line change @@ -499,13 +499,9 @@ impl quic::RecvStream for RecvStream {
499
499
500
500
#[ cfg_attr( feature = "tracing" , instrument( skip_all, level = "trace" ) ) ]
501
501
fn recv_id ( & self ) -> StreamId {
502
- self . stream
503
- . as_ref ( )
504
- . unwrap ( )
505
- . id ( )
506
- . 0
507
- . try_into ( )
508
- . expect ( "invalid stream id" )
502
+ let num: u64 = self . stream . as_ref ( ) . unwrap ( ) . id ( ) . into ( ) ;
503
+
504
+ num. try_into ( ) . expect ( "invalid stream id" )
509
505
}
510
506
}
511
507
@@ -628,7 +624,8 @@ where
628
624
629
625
#[ cfg_attr( feature = "tracing" , instrument( skip_all, level = "trace" ) ) ]
630
626
fn send_id ( & self ) -> StreamId {
631
- self . stream . id ( ) . 0 . try_into ( ) . expect ( "invalid stream id" )
627
+ let num: u64 = self . stream . id ( ) . into ( ) ;
628
+ num. try_into ( ) . expect ( "invalid stream id" )
632
629
}
633
630
}
634
631
Original file line number Diff line number Diff line change @@ -688,7 +688,7 @@ where
688
688
689
689
#[ cfg( test) ]
690
690
mod tests {
691
- use quinn_proto :: coding:: BufExt ;
691
+ use crate :: proto :: coding:: BufExt ;
692
692
693
693
use super :: * ;
694
694
You can’t perform that action at this time.
0 commit comments