Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions nat/src/masquerade/apalloc/test_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ mod context {
use std::net::{IpAddr, Ipv4Addr};
use std::str::FromStr;

#[allow(unused)]
#[allow(dead_code)]
pub fn addr_v4(ip: &str) -> Ipv4Addr {
Ipv4Addr::from_str(ip).unwrap()
}
#[allow(unused)]
#[allow(dead_code)]
pub fn addr_v4_bits(ip: &str) -> u32 {
addr_v4(ip).to_bits()
}
#[allow(unused)]
#[allow(dead_code)]
pub fn ipaddr(ip: &str) -> IpAddr {
IpAddr::from_str(ip).unwrap()
}
Expand All @@ -40,6 +40,7 @@ mod context {
pub fn vni2() -> Vni {
Vni::new_checked(200).unwrap()
}
#[allow(dead_code)]
pub fn vpcd1() -> VpcDiscriminant {
VpcDiscriminant::from_vni(vni1())
}
Expand Down
Loading