Skip to content

Commit 394e995

Browse files
author
Wenjie Li
committed
remove pub(crate) from CID new function to allow a third-party crate to implement CID generator
1 parent 8b1978b commit 394e995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quinn-proto/src/shared.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub struct ConnectionId {
6767
}
6868

6969
impl ConnectionId {
70-
pub(crate) fn new(bytes: &[u8]) -> Self {
70+
pub fn new(bytes: &[u8]) -> Self {
7171
debug_assert!(bytes.len() <= MAX_CID_SIZE);
7272
let mut res = Self {
7373
len: bytes.len() as u8,

0 commit comments

Comments
 (0)