wiggle-using crates: delete GuestErrorConversion

This commit is contained in:
Pat Hickey
2021-03-24 10:39:06 -07:00
parent 1c4af27f2d
commit e6c7e00a52
4 changed files with 0 additions and 32 deletions

View File

@@ -24,14 +24,6 @@ impl wiggle::GuestErrorType for types::Errno {
}
}
impl types::GuestErrorConversion for WasiCtx {
fn into_errno(&self, e: wiggle::GuestError) -> types::Errno {
debug!("Guest error: {:?}", e);
let snapshot1_errno: snapshot1_types::Errno = e.into();
snapshot1_errno.into()
}
}
impl types::UserErrorConversion for WasiCtx {
fn errno_from_error(&self, e: Error) -> Result<types::Errno, wiggle::Trap> {
debug!("Error: {:?}", e);

View File

@@ -30,13 +30,6 @@ impl wiggle::GuestErrorType for types::Errno {
}
}
impl types::GuestErrorConversion for WasiCtx {
fn into_errno(&self, e: wiggle::GuestError) -> types::Errno {
debug!("Guest error: {:?}", e);
e.into()
}
}
impl types::UserErrorConversion for WasiCtx {
fn errno_from_error(&self, e: Error) -> Result<types::Errno, wiggle::Trap> {
debug!("Error: {:?}", e);