Skip to content

Commit 86825ee

Browse files
what was that
1 parent f5485c2 commit 86825ee

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

quinn-proto/src/coding.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ impl Codec for Ipv6Addr {
103103
pub(crate) trait BufExt {
104104
fn get<T: Codec>(&mut self) -> Result<T>;
105105
fn get_var(&mut self) -> Result<u64>;
106-
fn get_path_id(&mut self) -> Result<PathId>;
107106
}
108107

109108
impl<T: Buf> BufExt for T {
@@ -114,10 +113,6 @@ impl<T: Buf> BufExt for T {
114113
fn get_var(&mut self) -> Result<u64> {
115114
Ok(VarInt::decode(self)?.into_inner())
116115
}
117-
118-
fn get_path_id(&mut self) -> Result<PathId> {
119-
Ok(PathId::decode(self)?)
120-
}
121116
}
122117

123118
pub(crate) trait BufMutExt {

quinn-proto/src/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ impl Iter {
726726
FrameType::PATH_RESPONSE => Frame::PathResponse(self.bytes.get()?),
727727
FrameType::NEW_CONNECTION_ID | FrameType::PATH_NEW_CONNECTION_ID => {
728728
let path_id = if ty == FrameType::PATH_NEW_CONNECTION_ID {
729-
Some(self.bytes.get_path_id()?)
729+
Some(self.bytes.get()?)
730730
} else {
731731
None
732732
};

0 commit comments

Comments
 (0)