From 69ac13ea47397b8552c1f12f61cf90955e6757fb Mon Sep 17 00:00:00 2001 From: luaneko Date: Wed, 25 Jun 2025 01:36:52 +1000 Subject: [PATCH] Rename some ipaddr methods --- crates/lb/src/net.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/lb/src/net.rs b/crates/lb/src/net.rs index aa542e4..ecdcb30 100644 --- a/crates/lb/src/net.rs +++ b/crates/lb/src/net.rs @@ -239,7 +239,7 @@ impl lb_ipaddr { } /// See [`Ipv4Addr::to_ipv6_compatible`]. - pub extern "Lua-C" fn compat_v6(&self) -> Self { + pub extern "Lua-C" fn to_v6_compat(&self) -> Self { match self.0 { IpAddr::V4(v4) => Self(v4.to_ipv6_compatible().into()), IpAddr::V6(_) => *self, @@ -247,7 +247,7 @@ impl lb_ipaddr { } /// See [`Ipv4Addr::to_ipv6_mapped`]. - pub extern "Lua-C" fn mapped_v6(&self) -> Self { + pub extern "Lua-C" fn to_v6_mapped(&self) -> Self { match self.0 { IpAddr::V4(v4) => Self(v4.to_ipv6_mapped().into()), IpAddr::V6(_) => *self,