From ee3599d5507ceee23ef3382dbda9de8e73c54a00 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Wed, 23 Oct 2019 12:08:35 +0200 Subject: Moved IO traits into platform module --- src/platform/linux/tun.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/platform/linux/tun.rs') diff --git a/src/platform/linux/tun.rs b/src/platform/linux/tun.rs index 5b7b105..090569a 100644 --- a/src/platform/linux/tun.rs +++ b/src/platform/linux/tun.rs @@ -1,6 +1,4 @@ -use super::super::super::wireguard::tun::*; -use super::super::PlatformTun; -use super::super::Tun; +use super::super::tun::*; use libc::*; @@ -127,7 +125,7 @@ impl Tun for LinuxTun { type MTU = LinuxTunMTU; } -impl PlatformTun for LinuxTun { +impl Platform for LinuxTun { fn create(name: &str) -> Result<(Vec, Self::Writer, Self::MTU), Self::Error> { // construct request struct let mut req = Ifreq { -- cgit v1.2.3-59-g8ed1b