mirror of
https://github.com/edera-dev/krata.git
synced 2026-11-04 21:22:20 +00:00
xenevtchn: convert to using thiserror
This commit is contained in:
5 files changed
+27
-52
No files matched your search
@@ -19,7 +19,6 @@ use std::time::Duration;
|
||||
use uuid::Uuid;
|
||||
use xencall::sys::CreateDomain;
|
||||
use xencall::{XenCall, XenCallError};
|
||||
use xenevtchn::EventChannelError;
|
||||
use xenstore::client::{
|
||||
XsPermission, XsdClient, XsdInterface, XS_PERM_NONE, XS_PERM_READ, XS_PERM_READ_WRITE,
|
||||
};
|
||||
@@ -78,8 +77,8 @@ impl From<FromUtf8Error> for XenClientError {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<EventChannelError> for XenClientError {
|
||||
fn from(value: EventChannelError) -> Self {
|
||||
impl From<xenevtchn::error::Error> for XenClientError {
|
||||
fn from(value: xenevtchn::error::Error) -> Self {
|
||||
XenClientError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user