Skip to content

Commit 195dd8c

Browse files
authored
Rollup merge of rust-lang#75179 - lzutao:unsed-ipv4-frominner, r=alexcrichton
Remove unused FromInner impl for Ipv4Addr The removed is a unused unstable implementation.
2 parents d7a5a41 + 01fa1d0 commit 195dd8c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

std/src/net/ip.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -961,11 +961,6 @@ impl AsInner<c::in_addr> for Ipv4Addr {
961961
&self.inner
962962
}
963963
}
964-
impl FromInner<c::in_addr> for Ipv4Addr {
965-
fn from_inner(addr: c::in_addr) -> Ipv4Addr {
966-
Ipv4Addr { inner: addr }
967-
}
968-
}
969964

970965
#[stable(feature = "ip_u32", since = "1.1.0")]
971966
impl From<Ipv4Addr> for u32 {

0 commit comments

Comments
 (0)