From 7499210d0ca495bfed54a537f458e26df308d5b1 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 16 Jul 2019 10:38:10 +0100 Subject: [PATCH] vm-virtio: net: Remove attributes for test exclusions Now that the tests are in use this import and function is used. Signed-off-by: Rob Bradford --- vm-virtio/src/net.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/vm-virtio/src/net.rs b/vm-virtio/src/net.rs index b704b0edf..2426f46f1 100644 --- a/vm-virtio/src/net.rs +++ b/vm-virtio/src/net.rs @@ -9,7 +9,6 @@ use epoll; use libc::EAGAIN; use libc::EFD_NONBLOCK; use std::cmp; -#[cfg(not(test))] use std::io::Read; use std::io::{self, Write}; use std::mem; @@ -296,7 +295,6 @@ impl NetEpollHandler { Ok(()) } - #[cfg(not(test))] fn read_tap(&mut self) -> io::Result { self.tap.read(&mut self.rx.frame_buf) }