From de1c6b2784f5ae5cd58dc7c0773ba9d2eb1342ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Mon, 24 Jun 2024 16:27:25 +0200 Subject: [PATCH] remove unused internal trait PrivAddress --- src/internal_traits.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/internal_traits.rs b/src/internal_traits.rs index e77f229..5066ebd 100644 --- a/src/internal_traits.rs +++ b/src/internal_traits.rs @@ -11,9 +11,6 @@ pub trait PrivUnspecAddress: Sized { type _Tools; } -/// Only implemented for IPv4Addr and IPv6Addr, NOT IpAddr -pub trait PrivAddress: PrivUnspecAddress {} - /// seal `Cidr` trait pub trait PrivCidr {} @@ -143,8 +140,6 @@ impl PrivUnspecAddress for Ipv4Addr { type _Tools = Ipv4AddrTools; } -impl PrivAddress for Ipv4Addr {} - #[derive(Clone, Copy)] struct Ipv6OverflowingOp { address: u128, @@ -279,8 +274,6 @@ impl PrivUnspecAddress for Ipv6Addr { type _Tools = Ipv6AddrTools; } -impl PrivAddress for Ipv6Addr {} - pub struct IpAddrTools(()); impl IpAddrTools {