|
| 1 | +error: use `Ipv4Addr::LOCALHOST` instead |
| 2 | + --> tests/ui/localhost_hardcode.rs:6:13 |
| 3 | + | |
| 4 | +LL | let _ = Ipv4Addr::new(127, 0, 0, 1); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ipv4Addr::LOCALHOST` |
| 6 | + | |
| 7 | + = note: `-D clippy::localhost-hardcode` implied by `-D warnings` |
| 8 | + = help: to override `-D warnings` add `#[allow(clippy::localhost_hardcode)]` |
| 9 | + |
| 10 | +error: use `net::Ipv4Addr::LOCALHOST` instead |
| 11 | + --> tests/ui/localhost_hardcode.rs:12:13 |
| 12 | + | |
| 13 | +LL | let _ = net::Ipv4Addr::new(127, 0, 0, 1); |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `net::Ipv4Addr::LOCALHOST` |
| 15 | + |
| 16 | +error: use `std::net::Ipv4Addr::LOCALHOST` instead |
| 17 | + --> tests/ui/localhost_hardcode.rs:17:13 |
| 18 | + | |
| 19 | +LL | let _ = std::net::Ipv4Addr::new(127, 0, 0, 1); |
| 20 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::net::Ipv4Addr::LOCALHOST` |
| 21 | + |
| 22 | +error: use `Ipv4Addr::LOCALHOST` instead |
| 23 | + --> tests/ui/localhost_hardcode.rs:28:13 |
| 24 | + | |
| 25 | +LL | let _ = Ipv4Addr::new(CONSTANT_1, CONSTANT_2, CONSTANT_3, CONSTANT_4); |
| 26 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ipv4Addr::LOCALHOST` |
| 27 | + |
| 28 | +error: use `net::Ipv4Addr::LOCALHOST` instead |
| 29 | + --> tests/ui/localhost_hardcode.rs:34:13 |
| 30 | + | |
| 31 | +LL | let _ = net::Ipv4Addr::new(CONSTANT_1, CONSTANT_2, CONSTANT_3, CONSTANT_4); |
| 32 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `net::Ipv4Addr::LOCALHOST` |
| 33 | + |
| 34 | +error: use `std::net::Ipv4Addr::LOCALHOST` instead |
| 35 | + --> tests/ui/localhost_hardcode.rs:39:13 |
| 36 | + | |
| 37 | +LL | let _ = std::net::Ipv4Addr::new(CONSTANT_1, CONSTANT_2, CONSTANT_3, CONSTANT_4); |
| 38 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::net::Ipv4Addr::LOCALHOST` |
| 39 | + |
| 40 | +error: use `Ipv4Addr::LOCALHOST` instead |
| 41 | + --> tests/ui/localhost_hardcode.rs:45:13 |
| 42 | + | |
| 43 | +LL | let _ = Ipv4Addr::new(126 + 1, 0, 0, 1); |
| 44 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ipv4Addr::LOCALHOST` |
| 45 | + |
| 46 | +error: use `Ipv4Addr::LOCALHOST` instead |
| 47 | + --> tests/ui/localhost_hardcode.rs:47:13 |
| 48 | + | |
| 49 | +LL | let _ = Ipv4Addr::new(126 + CONSTANT_4, 0, 0, 1); |
| 50 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ipv4Addr::LOCALHOST` |
| 51 | + |
| 52 | +error: use `Ipv4Addr::LOCALHOST` instead |
| 53 | + --> tests/ui/localhost_hardcode.rs:49:13 |
| 54 | + | |
| 55 | +LL | let _ = Ipv4Addr::new(127, 2 - 1 - CONSTANT_4, 0, 1); |
| 56 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ipv4Addr::LOCALHOST` |
| 57 | + |
| 58 | +error: use `Ipv4Addr::LOCALHOST` instead |
| 59 | + --> tests/ui/localhost_hardcode.rs:51:13 |
| 60 | + | |
| 61 | +LL | let _ = Ipv4Addr::new({ 127 }, 0, 0, 1); |
| 62 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ipv4Addr::LOCALHOST` |
| 63 | + |
| 64 | +error: aborting due to 10 previous errors |
| 65 | + |
0 commit comments