Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-10-29 14:58:28 +01:00
parent ba49d5dd8b
commit df560c2538

View File

@ -1,4 +1,5 @@
use std::io;
use std::os::unix::io::RawFd;
use std::sync::{mpsc, Arc};
use std::thread::JoinHandle;
@ -14,7 +15,7 @@ pub struct Reactor {
}
impl Reactor {
pub fn new() -> io::Error<Self> {
pub fn new() -> io::Result<Self> {
let epoll = Arc::new(Epoll::new()?);
let (send_remove, recv_remove) = mpsc::channel();