@@ -1456,10 +1456,10 @@ impl WasmInstanceEnv {
14561456 /// Returns an error:
14571457 ///
14581458 /// - `WOULD_BLOCK_TRANSACTION` if there is currently a transaction open.
1459- /// In this case, `out` is not written.
1459+ /// In this case, `out` is not written.
14601460 /// - `HTTP_ERROR` if an error occurs while executing the HTTP request.
1461- /// In this case, a [`BytesSource`] is written to `out`
1462- /// containing a BSATN-encoded `spacetimedb_lib::http::Error` object.
1461+ /// In this case, a [`BytesSource`] is written to `out`
1462+ /// containing a BSATN-encoded `spacetimedb_lib::http::Error` object.
14631463 ///
14641464 /// # Traps
14651465 ///
@@ -1477,6 +1477,9 @@ impl WasmInstanceEnv {
14771477 Self :: async_with_span ( caller, AbiCall :: ProcedureHttpRequest , move |mut caller| async move {
14781478 let ( mem, env) = Self :: mem_env ( & mut caller) ;
14791479
1480+ // Yes clippy, I'm calling a closure at its definition site *on purpose*,
1481+ // as a hacky-but-stable `try` block.
1482+ #[ allow( clippy:: redundant_closure_call) ]
14801483 let res = ( async move || {
14811484 if env. instance_env . in_tx ( ) {
14821485 // If we're holding a transaction open, refuse to perform this blocking operation.
@@ -1611,7 +1614,7 @@ impl WasmInstanceEnv {
16111614 let response = st_http:: Response :: from ( response) ;
16121615
16131616 // Write the request across the WASM boundary.
1614- return write_result (
1617+ write_result (
16151618 & response,
16161619 0u32 ,
16171620 // If serializing the response fails (which I'm not sure it can, but the types allow it to),
@@ -1620,7 +1623,7 @@ impl WasmInstanceEnv {
16201623 mem,
16211624 out,
16221625 env,
1623- ) ;
1626+ )
16241627 } ) ( )
16251628 . await ;
16261629
0 commit comments