diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2021-01-13 18:10:04 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2021-01-13 18:10:52 +0100 |
commit | 7d84ef9064559a29b23ab86036f7ef62b450f90c (patch) | |
tree | 9a849e0b80218125b007420d7d472665b1619c4e /src/platform/linux | |
parent | Upgrade dependencies (diff) | |
download | wireguard-rs-7d84ef9064559a29b23ab86036f7ef62b450f90c.tar.xz wireguard-rs-7d84ef9064559a29b23ab86036f7ef62b450f90c.zip |
Signed-off-by: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Diffstat (limited to 'src/platform/linux')
-rw-r--r-- | src/platform/linux/tun.rs | 1 | ||||
-rw-r--r-- | src/platform/linux/udp.rs | 2 |
2 files changed, 3 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); |