about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/ip_constant_from_external.stderr
blob: 99dd827d41f75b6efbc70c506184c6a7fc8e0af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: hand-coded well-known IP address
  --> tests/ui/localhost.txt:1:1
   |
LL | std::net::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 - std::net::Ipv4Addr::new(127, 0, 0, 1)
LL + std::net::Ipv4Addr::LOCALHOST
   |

error: aborting due to 1 previous error