Skip to content

Commit

Permalink
proto: make ConnectionId::from_buf pub
Browse files Browse the repository at this point in the history
Implementations of `ConnectionIdParser` can benefit from it
  • Loading branch information
LAN Xingcan committed May 17, 2024
1 parent f3fe143 commit a53bc78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-proto/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl ConnectionId {
/// Constructs cid by reading `len` bytes from a `Buf`
///
/// Callers need to assure that `buf.remaining() >= len`
pub(crate) fn from_buf(buf: &mut impl Buf, len: usize) -> Self {
pub fn from_buf(buf: &mut impl Buf, len: usize) -> Self {
debug_assert!(len <= MAX_CID_SIZE);
let mut res = Self {
len: len as u8,
Expand Down

0 comments on commit a53bc78

Please sign in to comment.