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
thynson committed May 18, 2024
1 parent e9ecf73 commit 433f69f
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 @@ -116,7 +116,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 433f69f

Please sign in to comment.