Skip to content

Commit

Permalink
Fix compile without async
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Feb 1, 2021
1 parent 74b61c9 commit 74eb448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/wasmtime/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ impl Store {
/// This only works on async futures and stores, and assumes that we're
/// executing on a fiber. This will yield execution back to the caller once
/// and when we come back we'll continue with `fuel_to_inject` more fuel.
#[cfg(feature = "async")]
fn out_of_gas_yield(&self, fuel_to_inject: u64) {
// Small future that yields once and then returns ()
#[derive(Default)]
Expand Down

0 comments on commit 74eb448

Please sign in to comment.