From 1bc2113f7028fd98839990af6953676ec9b9a0f9 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Mon, 24 Oct 2022 19:52:38 +0000 Subject: [PATCH] refactor(runtime): make use of nix::Error consistent Reviewed-by: cpli Reviewed-by: ElKowar Signed-off-by: Charlotte Meyer --- crates/oyster_runtime/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/oyster_runtime/src/lib.rs b/crates/oyster_runtime/src/lib.rs index e50c2ee..d2d78f0 100644 --- a/crates/oyster_runtime/src/lib.rs +++ b/crates/oyster_runtime/src/lib.rs @@ -14,7 +14,6 @@ use std::{ use builtins::BuiltinMap; use nix::{ - errno::Errno, fcntl::OFlag, libc, sys::{ @@ -57,7 +56,7 @@ pub enum RuntimeError { SpawnFailed(#[source] io::Error), #[error("failed to fork: {0}")] - ForkFailed(#[source] Errno), + ForkFailed(#[source] nix::Error), #[error("waitpid error: {0}")] WaitPid(nix::Error),