mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
Use is_unicast
instead of `!is_multicast
This commit is contained in:
parent
7f27b29fd4
commit
187b415450
@ -1445,7 +1445,7 @@ impl Ipv6Addr {
|
||||
#[unstable(feature = "ip", issue = "27709")]
|
||||
#[inline]
|
||||
pub const fn is_unicast_global(&self) -> bool {
|
||||
!self.is_multicast()
|
||||
self.is_unicast()
|
||||
&& !self.is_loopback()
|
||||
&& !self.is_unicast_link_local()
|
||||
&& !self.is_unique_local()
|
||||
|
Loading…
Reference in New Issue
Block a user