Skip to content
Snippets Groups Projects
Verified Commit b6eb7dcf authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Impl From<Errno> for syscall::Error.

parent c2177455
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,12 @@ impl From<syscall::Error> for Errno {
Errno(value.errno)
}
}
#[cfg(target_os = "redox")]
impl From<Errno> for syscall::Error {
fn from(value: Errno) -> Self {
syscall::Error::new(value.0)
}
}
pub trait ResultExt<T> {
fn or_minus_one_errno(self) -> T;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment