mirror of
https://github.com/edera-dev/krata.git
synced 2026-11-04 21:22:20 +00:00
xenstore: move error type and make use of result type aliases
This commit is contained in:
8 files changed
+95
-112
No files matched your search
+2
-3
@@ -7,7 +7,6 @@ use std::fmt::{Display, Formatter};
|
||||
use std::num::ParseIntError;
|
||||
use std::path::StripPrefixError;
|
||||
use xenclient::XenClientError;
|
||||
use xenstore::bus::XsdBusError;
|
||||
|
||||
pub type Result<T> = std::result::Result<T, HyphaError>;
|
||||
|
||||
@@ -117,8 +116,8 @@ impl From<uuid::Error> for HyphaError {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<XsdBusError> for HyphaError {
|
||||
fn from(value: XsdBusError) -> Self {
|
||||
impl From<xenstore::error::Error> for HyphaError {
|
||||
fn from(value: xenstore::error::Error) -> Self {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user