From 1e37144eae2c4011735eb8f70313904bf7d39452 Mon Sep 17 00:00:00 2001 From: Preston Evans <32944016+preston-evans98@users.noreply.github.com> Date: Wed, 13 Sep 2023 07:22:22 -0700 Subject: [PATCH] Fix nits (#846) --- adapters/risc0/src/host.rs | 1 + examples/demo-rollup/tests/bank/mod.rs | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/adapters/risc0/src/host.rs b/adapters/risc0/src/host.rs index 58a8a881cf..7988453324 100644 --- a/adapters/risc0/src/host.rs +++ b/adapters/risc0/src/host.rs @@ -20,6 +20,7 @@ pub struct Risc0Host<'a> { } #[cfg(not(feature = "bench"))] +#[inline(always)] fn add_benchmarking_callbacks(env: ExecutorEnvBuilder<'_>) -> ExecutorEnvBuilder<'_> { env } diff --git a/examples/demo-rollup/tests/bank/mod.rs b/examples/demo-rollup/tests/bank/mod.rs index a60fed7f51..4910bd24d9 100644 --- a/examples/demo-rollup/tests/bank/mod.rs +++ b/examples/demo-rollup/tests/bank/mod.rs @@ -78,12 +78,10 @@ async fn bank_tx_tests() -> Result<(), anyhow::Error> { // Wait for rollup task to start: let port = port_rx.await.unwrap(); - // If the rollup throws an error, stop trying to send the transaction and return it + // If the rollup throws an error, return it and stop trying to send the transaction tokio::select! { - err = rollup_task => { - err?; - }, - res = send_test_create_token_tx(port) =>{res?}, + err = rollup_task => err?, + res = send_test_create_token_tx(port) => res?, }; Ok(()) }