mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-04 07:39:39 +00:00 
			
		
		
		
	xenevtchn: convert to using thiserror
This commit is contained in:
		@ -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)?;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user