File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ impl Codec for Ipv6Addr {
103
103
pub ( crate ) trait BufExt {
104
104
fn get < T : Codec > ( & mut self ) -> Result < T > ;
105
105
fn get_var ( & mut self ) -> Result < u64 > ;
106
- fn get_path_id ( & mut self ) -> Result < PathId > ;
107
106
}
108
107
109
108
impl < T : Buf > BufExt for T {
@@ -114,10 +113,6 @@ impl<T: Buf> BufExt for T {
114
113
fn get_var ( & mut self ) -> Result < u64 > {
115
114
Ok ( VarInt :: decode ( self ) ?. into_inner ( ) )
116
115
}
117
-
118
- fn get_path_id ( & mut self ) -> Result < PathId > {
119
- Ok ( PathId :: decode ( self ) ?)
120
- }
121
116
}
122
117
123
118
pub ( crate ) trait BufMutExt {
Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ impl Iter {
726
726
FrameType :: PATH_RESPONSE => Frame :: PathResponse ( self . bytes . get ( ) ?) ,
727
727
FrameType :: NEW_CONNECTION_ID | FrameType :: PATH_NEW_CONNECTION_ID => {
728
728
let path_id = if ty == FrameType :: PATH_NEW_CONNECTION_ID {
729
- Some ( self . bytes . get_path_id ( ) ?)
729
+ Some ( self . bytes . get ( ) ?)
730
730
} else {
731
731
None
732
732
} ;
You can’t perform that action at this time.
0 commit comments