From ac35845310e2fe37440497cb729d39504a71617a Mon Sep 17 00:00:00 2001 From: cbax Date: Sun, 20 Oct 2024 23:06:07 -0400 Subject: [PATCH] fixed visibility --- src/lib.rs | 2 +- src/net.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bb493df..f9faf2f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +1 @@ -mod net; +pub mod net; diff --git a/src/net.rs b/src/net.rs index 65a0807..91d3bc5 100644 --- a/src/net.rs +++ b/src/net.rs @@ -1,6 +1,6 @@ use std::net::Ipv4Addr; -trait ToIpv4 { +pub trait ToIpv4 { fn to_ipv4(self) -> Ipv4Addr; } @@ -10,7 +10,7 @@ impl ToIpv4 for u32 { } } -trait Tou32 { +pub trait Tou32 { fn to_u32(self) -> u32; }