| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:7:13 | |
| | | |
| LL | let _ = Ipv4Addr::new(127, 0, 0, 1); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| = note: `-D clippy::ip-constant` implied by `-D warnings` | |
| = help: to override `-D warnings` add `#[allow(clippy::ip_constant)]` | |
| help: use | |
| | | |
| LL - let _ = Ipv4Addr::new(127, 0, 0, 1); | |
| LL + let _ = Ipv4Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:9:13 | |
| | | |
| LL | let _ = Ipv4Addr::new(255, 255, 255, 255); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = Ipv4Addr::new(255, 255, 255, 255); | |
| LL + let _ = Ipv4Addr::BROADCAST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:11:13 | |
| | | |
| LL | let _ = Ipv4Addr::new(0, 0, 0, 0); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = Ipv4Addr::new(0, 0, 0, 0); | |
| LL + let _ = Ipv4Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:15:13 | |
| | | |
| LL | let _ = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); | |
| LL + let _ = Ipv6Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:17:13 | |
| | | |
| LL | let _ = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); | |
| LL + let _ = Ipv6Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:23:13 | |
| | | |
| LL | let _ = net::Ipv4Addr::new(127, 0, 0, 1); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = net::Ipv4Addr::new(127, 0, 0, 1); | |
| LL + let _ = net::Ipv4Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:25:13 | |
| | | |
| LL | let _ = net::Ipv4Addr::new(255, 255, 255, 255); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = net::Ipv4Addr::new(255, 255, 255, 255); | |
| LL + let _ = net::Ipv4Addr::BROADCAST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:27:13 | |
| | | |
| LL | let _ = net::Ipv4Addr::new(0, 0, 0, 0); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = net::Ipv4Addr::new(0, 0, 0, 0); | |
| LL + let _ = net::Ipv4Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:30:13 | |
| | | |
| LL | let _ = net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); | |
| LL + let _ = net::Ipv6Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:32:13 | |
| | | |
| LL | let _ = net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); | |
| LL + let _ = net::Ipv6Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:37:13 | |
| | | |
| LL | let _ = std::net::Ipv4Addr::new(127, 0, 0, 1); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = std::net::Ipv4Addr::new(127, 0, 0, 1); | |
| LL + let _ = std::net::Ipv4Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:39:13 | |
| | | |
| LL | let _ = std::net::Ipv4Addr::new(255, 255, 255, 255); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = std::net::Ipv4Addr::new(255, 255, 255, 255); | |
| LL + let _ = std::net::Ipv4Addr::BROADCAST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:41:13 | |
| | | |
| LL | let _ = std::net::Ipv4Addr::new(0, 0, 0, 0); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = std::net::Ipv4Addr::new(0, 0, 0, 0); | |
| LL + let _ = std::net::Ipv4Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:44:13 | |
| | | |
| LL | let _ = std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); | |
| LL + let _ = std::net::Ipv6Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:46:13 | |
| | | |
| LL | let _ = std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); | |
| LL + let _ = std::net::Ipv6Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:51:13 | |
| | | |
| LL | let _ = (std::net::Ipv4Addr::new(127, 0, 0, 1)); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = (std::net::Ipv4Addr::new(127, 0, 0, 1)); | |
| LL + let _ = std::net::Ipv4Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:53:13 | |
| | | |
| LL | let _ = (std::net::Ipv4Addr::new(255, 255, 255, 255)); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = (std::net::Ipv4Addr::new(255, 255, 255, 255)); | |
| LL + let _ = std::net::Ipv4Addr::BROADCAST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:55:13 | |
| | | |
| LL | let _ = (std::net::Ipv4Addr::new(0, 0, 0, 0)); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = (std::net::Ipv4Addr::new(0, 0, 0, 0)); | |
| LL + let _ = std::net::Ipv4Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:58:13 | |
| | | |
| LL | let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)); | |
| LL + let _ = std::net::Ipv6Addr::LOCALHOST; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:60:13 | |
| | | |
| LL | let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)); | |
| LL + let _ = std::net::Ipv6Addr::UNSPECIFIED; | |
| | | |
| error: hand-coded well-known IP address | |
| --> tests/ui/ip_constant.rs:104:13 | |
| | | |
| LL | let _ = Ipv4Addr::new(126 + 1, 0, 0, 1); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: use | |
| | | |
| LL - let _ = Ipv4Addr::new(126 + 1, 0, 0, 1); | |
| LL + let _ = Ipv4Addr::LOCALHOST; | |
| | | |
| error: aborting due to 21 previous errors | |