Impl From<libredox Error> for syscall Error.

This commit is contained in:
4lDO2
2024-02-23 10:34:48 +01:00
parent 9faaf9d156
commit 0ef1244bd7
+6
View File
@@ -88,6 +88,12 @@ pub mod error {
}
}
}
#[cfg(feature = "redox_syscall")]
impl From<Error> for syscall::Error {
fn from(value: Error) -> Self {
Self::new(value.errno())
}
}
#[cfg(feature = "std")]
impl From<Error> for std::io::Error {
fn from(value: Error) -> Self {