aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/linux/tun.rs1
-rw-r--r--src/platform/linux/udp.rs2
-rw-r--r--src/platform/tun.rs1
-rw-r--r--src/platform/udp.rs1
4 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/linux/tun.rs b/src/platform/linux/tun.rs
index 9157b38..82fada1 100644
--- a/src/platform/linux/tun.rs
+++ b/src/platform/linux/tun.rs
@@ -318,6 +318,7 @@ impl Tun for LinuxTun {
impl PlatformTun for LinuxTun {
type Status = LinuxTunStatus;
+ #[allow(clippy::type_complexity)]
fn create(name: &str) -> Result<(Vec<Self::Reader>, Self::Writer, Self::Status), Self::Error> {
// construct request struct
let mut req = Ifreq {
diff --git a/src/platform/linux/udp.rs b/src/platform/linux/udp.rs
index e1ceb73..b62d5bf 100644
--- a/src/platform/linux/udp.rs
+++ b/src/platform/linux/udp.rs
@@ -666,6 +666,8 @@ impl LinuxUDP {
impl PlatformUDP for LinuxUDP {
type Owner = LinuxOwner;
+ #[allow(clippy::type_complexity)]
+ #[allow(clippy::unnecessary_unwrap)]
fn bind(mut port: u16) -> Result<(Vec<Self::Reader>, Self::Writer, Self::Owner), Self::Error> {
log::debug!("bind to port {}", port);
diff --git a/src/platform/tun.rs b/src/platform/tun.rs
index 801754e..38c95bf 100644
--- a/src/platform/tun.rs
+++ b/src/platform/tun.rs
@@ -58,5 +58,6 @@ pub trait Tun: Send + Sync + 'static {
pub trait PlatformTun: Tun {
type Status: Status;
+ #[allow(clippy::type_complexity)]
fn create(name: &str) -> Result<(Vec<Self::Reader>, Self::Writer, Self::Status), Self::Error>;
}
diff --git a/src/platform/udp.rs b/src/platform/udp.rs
index 4098b10..0b9c823 100644
--- a/src/platform/udp.rs
+++ b/src/platform/udp.rs
@@ -41,5 +41,6 @@ pub trait PlatformUDP: UDP {
/// Bind to a new port, returning the reader/writer and
/// an associated instance of the owner type, which closes the UDP socket upon "drop"
/// and enables configuration of the fwmark value.
+ #[allow(clippy::type_complexity)]
fn bind(port: u16) -> Result<(Vec<Self::Reader>, Self::Writer, Self::Owner), Self::Error>;
}