Skip to content

Commit f42df64

Browse files
authored
wasmtime-jit-icache-coherence: Use wasmtime_environ::error instead of anyhow (#12207)
1 parent d97a607 commit f42df64

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/jit-icache-coherence/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ workspace = true
1414

1515
[dependencies]
1616
cfg-if = { workspace = true }
17-
anyhow = { workspace = true }
17+
wasmtime-environ = { workspace = true }
1818

1919
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
2020
workspace = true

crates/jit-icache-coherence/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//! # len: usize,
4242
//! # }
4343
//! #
44-
//! # fn main() -> anyhow::Result<()> {
44+
//! # fn main() -> wasmtime_environ::error::Result<()> {
4545
//! #
4646
//! # let run_code = || {};
4747
//! # let code = vec![0u8; 64];

crates/jit-icache-coherence/src/libc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::ffi::c_void;
44
pub use std::io::Result;
55

66
#[cfg(not(any(target_os = "linux", target_os = "android")))]
7-
pub use anyhow::Result;
7+
pub use wasmtime_environ::error::Result;
88

99
#[cfg(all(
1010
target_arch = "aarch64",
@@ -93,7 +93,7 @@ mod details {
9393
any(target_os = "linux", target_os = "android")
9494
)))]
9595
mod details {
96-
// NB: this uses `anyhow::Result` instead of `std::io::Result` to compile on
96+
// NB: this uses `wasmtime_environ::error::Result` instead of `std::io::Result` to compile on
9797
// `no_std`.
9898
pub(crate) fn pipeline_flush_mt() -> super::Result<()> {
9999
Ok(())

crates/jit-icache-coherence/src/miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pub use anyhow::Result;
21
use std::ffi::c_void;
2+
pub use wasmtime_environ::error::Result;
33

44
pub(crate) fn pipeline_flush_mt() -> Result<()> {
55
Ok(())

0 commit comments

Comments
 (0)