Skip to content

Commit 89f7395

Browse files
committed
revert incorrect test change in flavorful/wasm.rs
I had thoughtlessly removed test code based on a clippy warning, not realizing it was testing (at compile time) that the generated types implemented `Debug`. Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 05009ef commit 89f7395

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/runtime/flavorful/wasm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl Guest for Component {
4444

4545
assert!(errno_result().is_err());
4646
MyErrno::A.to_string();
47+
_ = format!("{:?}", MyErrno::A);
4748
fn assert_error<T: std::error::Error>() {}
4849
assert_error::<MyErrno>();
4950

@@ -106,6 +107,7 @@ impl exports::test::flavorful::test::Guest for Component {
106107

107108
fn errno_result() -> Result<(), MyErrno> {
108109
MyErrno::A.to_string();
110+
_ = format!("{:?}", MyErrno::A);
109111
fn assert_error<T: std::error::Error>() {}
110112
assert_error::<MyErrno>();
111113
Err(MyErrno::B)

0 commit comments

Comments
 (0)