Skip to content

Commit 2981fa0

Browse files
committed
deexport to_prefix_len()
1 parent 4a95957 commit 2981fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wire/ip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Address {
186186
}
187187

188188
/// Treat as subnet mask, get position of first 0
189-
pub fn to_prefix_len(&self) -> u8 {
189+
pub(crate) fn to_prefix_len(&self) -> u8 {
190190
let mut prefix_len = 0;
191191
for byte in self.as_bytes() {
192192
let mut mask = 0x80;

0 commit comments

Comments
 (0)