Skip to content

Commit f1f7e7a

Browse files
committed
Simplify clippy fix.
1 parent c918463 commit f1f7e7a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

std/src/net/ip_addr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ use super::display_buffer::DisplayBuffer;
3434
#[derive(Copy, Clone, Eq, PartialEq, Hash, PartialOrd, Ord)]
3535
pub enum IpAddr {
3636
/// An IPv4 address.
37-
#[cfg_attr(not(test), rustc_diagnostic_item = "ip_addr_variant_v4")]
3837
#[stable(feature = "ip_addr", since = "1.7.0")]
3938
V4(#[stable(feature = "ip_addr", since = "1.7.0")] Ipv4Addr),
4039
/// An IPv6 address.
41-
#[cfg_attr(not(test), rustc_diagnostic_item = "ip_addr_variant_v6")]
4240
#[stable(feature = "ip_addr", since = "1.7.0")]
4341
V6(#[stable(feature = "ip_addr", since = "1.7.0")] Ipv6Addr),
4442
}

0 commit comments

Comments
 (0)