We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bd227f2 + 44cce5a commit 1597416Copy full SHA for 1597416
std/src/net/ip.rs
@@ -993,6 +993,7 @@ impl Ord for Ipv4Addr {
993
}
994
995
impl IntoInner<c::in_addr> for Ipv4Addr {
996
+ #[inline]
997
fn into_inner(self) -> c::in_addr {
998
self.inner
999
@@ -1800,11 +1801,13 @@ impl Ord for Ipv6Addr {
1800
1801
1802
1803
impl AsInner<c::in6_addr> for Ipv6Addr {
1804
1805
fn as_inner(&self) -> &c::in6_addr {
1806
&self.inner
1807
1808
1809
impl FromInner<c::in6_addr> for Ipv6Addr {
1810
1811
fn from_inner(addr: c::in6_addr) -> Ipv6Addr {
1812
Ipv6Addr { inner: addr }
1813
0 commit comments