We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0eed1e commit cbe80a9Copy full SHA for cbe80a9
src/libstd/net/ip.rs
@@ -484,9 +484,9 @@ impl Ipv4Addr {
484
#[stable(since = "1.7.0", feature = "ip_17")]
485
pub fn is_private(&self) -> bool {
486
match self.octets() {
487
- [10, _..] => true,
488
- [172, b, _..] if b >= 16 && b <= 31 => true,
489
- [192, 168, _..] => true,
+ [10, ..] => true,
+ [172, b, ..] if b >= 16 && b <= 31 => true,
+ [192, 168, ..] => true,
490
_ => false,
491
}
492
@@ -510,7 +510,7 @@ impl Ipv4Addr {
510
511
pub fn is_link_local(&self) -> bool {
512
513
- [169, 254, _..] => true,
+ [169, 254, ..] => true,
514
515
516
0 commit comments