mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-30 00:01:16 +00:00
dont make the addr types non_exhaustive
This commit is contained in:
@@ -584,7 +584,6 @@ impl From<&noq_udp::Transmit<'_>> for OwnedTransmit {
|
||||
|
||||
/// Transports address.
|
||||
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[non_exhaustive]
|
||||
pub enum Addr {
|
||||
/// An IP address, should always be stored in its canonical form.
|
||||
Ip(SocketAddr),
|
||||
@@ -779,7 +778,6 @@ impl LocalTransportAddr {
|
||||
/// The kind of a transport address, used for configuring bias.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(not(feature = "unstable-custom-transports"), allow(unreachable_pub))]
|
||||
#[non_exhaustive]
|
||||
pub enum AddrKind {
|
||||
/// An IPv4 address.
|
||||
IpV4,
|
||||
|
||||
Reference in New Issue
Block a user