From bcebdd43ef40b5e7034a5794142586f6834df3cc Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Thu, 4 Mar 2021 17:28:20 -0800 Subject: [PATCH] wiggle use sites: remove ctx argument --- crates/wasi-common/src/snapshots/preview_0.rs | 1 - crates/wasi-common/src/snapshots/preview_1.rs | 1 - crates/wasi-crypto/src/wiggle_interfaces/mod.rs | 1 - crates/wasi-nn/src/witx.rs | 1 - 4 files changed, 4 deletions(-) diff --git a/crates/wasi-common/src/snapshots/preview_0.rs b/crates/wasi-common/src/snapshots/preview_0.rs index 4d1ee4c777..fc92e76f00 100644 --- a/crates/wasi-common/src/snapshots/preview_0.rs +++ b/crates/wasi-common/src/snapshots/preview_0.rs @@ -15,7 +15,6 @@ use wiggle::GuestPtr; wiggle::from_witx!({ witx: ["$WASI_ROOT/phases/old/snapshot_0/witx/wasi_unstable.witx"], - ctx: WasiCtx, errors: { errno => Error }, }); diff --git a/crates/wasi-common/src/snapshots/preview_1.rs b/crates/wasi-common/src/snapshots/preview_1.rs index e6db3fb761..88b07b1f9a 100644 --- a/crates/wasi-common/src/snapshots/preview_1.rs +++ b/crates/wasi-common/src/snapshots/preview_1.rs @@ -21,7 +21,6 @@ use wiggle::GuestPtr; wiggle::from_witx!({ witx: ["$WASI_ROOT/phases/snapshot/witx/wasi_snapshot_preview1.witx"], - ctx: WasiCtx, errors: { errno => Error }, }); diff --git a/crates/wasi-crypto/src/wiggle_interfaces/mod.rs b/crates/wasi-crypto/src/wiggle_interfaces/mod.rs index dd32f6cdea..41119300c0 100644 --- a/crates/wasi-crypto/src/wiggle_interfaces/mod.rs +++ b/crates/wasi-crypto/src/wiggle_interfaces/mod.rs @@ -2,7 +2,6 @@ pub use wasi_crypto::CryptoCtx as WasiCryptoCtx; wiggle::from_witx!({ witx: ["$CARGO_MANIFEST_DIR/spec/witx/wasi_ephemeral_crypto.witx"], - ctx: WasiCryptoCtx }); pub mod wasi_modules { diff --git a/crates/wasi-nn/src/witx.rs b/crates/wasi-nn/src/witx.rs index 011c173ad8..72120276b7 100644 --- a/crates/wasi-nn/src/witx.rs +++ b/crates/wasi-nn/src/witx.rs @@ -5,7 +5,6 @@ use crate::ctx::WasiNnError; // Generate the traits and types of wasi-nn in several Rust modules (e.g. `types`). wiggle::from_witx!({ witx: ["$WASI_ROOT/phases/ephemeral/witx/wasi_ephemeral_nn.witx"], - ctx: WasiNnCtx, errors: { nn_errno => WasiNnError } });