Skip to content

Commit 4c25698

Browse files
authored
Migrate wasmtime-wasi-tls-openssl to wasmtime::Error (#12343)
1 parent f79fc4a commit 4c25698

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Cargo.lock

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

crates/wasi-tls-openssl/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ tokio-openssl = { workspace = true }
1818
openssl = { workspace = true }
1919

2020
[dev-dependencies]
21-
anyhow = { workspace = true }
2221
test-programs-artifacts = { workspace = true }
2322
wasmtime = { workspace = true, features = ["runtime", "component-model"] }
2423
wasmtime-wasi = { workspace = true }

crates/wasi-tls-openssl/tests/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use anyhow::{Result, anyhow};
21
use wasmtime::{
3-
Store,
2+
Result, Store,
43
component::{Component, Linker, ResourceTable},
4+
format_err,
55
};
66
use wasmtime_wasi::{WasiCtx, WasiCtxView, WasiView, p2::bindings::Command};
77
use wasmtime_wasi_tls::{LinkOptions, WasiTls, WasiTlsCtx, WasiTlsCtxBuilder};
@@ -52,7 +52,7 @@ async fn run_test(path: &str) -> Result<()> {
5252
.wasi_cli_run()
5353
.call_run(&mut store)
5454
.await?
55-
.map_err(|()| anyhow!("command returned with failing exit status"))
55+
.map_err(|()| format_err!("command returned with failing exit status"))
5656
}
5757

5858
macro_rules! assert_test_exists {

0 commit comments

Comments
 (0)