Refactor
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
use err::Error;
|
||||
use items::plainevents::PlainEvents;
|
||||
use netpod::log::*;
|
||||
use netpod::Channel;
|
||||
#[allow(unused)]
|
||||
use std::os::unix::prelude::OpenOptionsExt;
|
||||
use std::os::unix::prelude::{AsRawFd, OsStrExt};
|
||||
@@ -173,3 +175,11 @@ mod test {
|
||||
Ok(taskrun::run(write_1()).unwrap())
|
||||
}
|
||||
}
|
||||
|
||||
pub struct EventSink {}
|
||||
|
||||
impl EventSink {
|
||||
pub fn sink(&self, _channel: &Channel, _events: PlainEvents) -> Result<(), Error> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user