xenevtchn: convert to using thiserror

This commit is contained in:
Alex Zenla
2024-01-30 02:05:37 -08:00
parent eba623d61a
commit a1081ea79c
5 changed files with 27 additions and 52 deletions

View File

@ -1,6 +1,7 @@
use xenevtchn::{EventChannel, EventChannelError};
use xenevtchn::error::Result;
use xenevtchn::EventChannel;
fn main() -> Result<(), EventChannelError> {
fn main() -> Result<()> {
let mut channel = EventChannel::open()?;
println!("Channel opened.");
let port = channel.bind_unbound_port(1)?;