xenevtchn: convert to using thiserror

This commit is contained in:
Alex Zenla committed 2024-01-30 02:05:37 -08:00
1 parent eba623d61a
commit a1081ea79c
5 files changed
+27 -52

No files matched your search

+3 -2
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)?;