Skip to content

Commit cbe80a9

Browse files
committed
Replace _.. with just .. in slice pattern
1 parent f0eed1e commit cbe80a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/net/ip.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ impl Ipv4Addr {
484484
#[stable(since = "1.7.0", feature = "ip_17")]
485485
pub fn is_private(&self) -> bool {
486486
match self.octets() {
487-
[10, _..] => true,
488-
[172, b, _..] if b >= 16 && b <= 31 => true,
489-
[192, 168, _..] => true,
487+
[10, ..] => true,
488+
[172, b, ..] if b >= 16 && b <= 31 => true,
489+
[192, 168, ..] => true,
490490
_ => false,
491491
}
492492
}
@@ -510,7 +510,7 @@ impl Ipv4Addr {
510510
#[stable(since = "1.7.0", feature = "ip_17")]
511511
pub fn is_link_local(&self) -> bool {
512512
match self.octets() {
513-
[169, 254, _..] => true,
513+
[169, 254, ..] => true,
514514
_ => false,
515515
}
516516
}

0 commit comments

Comments
 (0)