Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit a41f68b

Browse files
committed
fix: fix no-std build
1 parent ae83085 commit a41f68b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/tinywasm/src/coro.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ impl From<SuspendReason> for UnexpectedSuspendError {
231231
fn from(value: SuspendReason) -> Self {
232232
match value {
233233
SuspendReason::Yield(_) => Self::Yield,
234+
#[cfg(feature = "std")]
234235
SuspendReason::SuspendedEpoch => Self::SuspendedEpoch,
235236
SuspendReason::SuspendedCallback => Self::SuspendedCallback,
236237
SuspendReason::SuspendedFlag => Self::SuspendedFlag,

0 commit comments

Comments
 (0)