From 46fe352dcd7b8397743fb488aaa1b60ea554014a Mon Sep 17 00:00:00 2001 From: nomaxg Date: Mon, 27 Nov 2023 11:33:26 -0500 Subject: [PATCH] expand unecessary macro --- arbitrator/jit/src/wavmio.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arbitrator/jit/src/wavmio.rs b/arbitrator/jit/src/wavmio.rs index 0fad3e856b..a26ec38e9f 100644 --- a/arbitrator/jit/src/wavmio.rs +++ b/arbitrator/jit/src/wavmio.rs @@ -124,17 +124,11 @@ fn read_hotshot_commitment_impl( return Ok(()); } - macro_rules! error { - ($text:expr $(,$args:expr)*) => {{ - let text = format!($text $(,$args)*); - return Escape::hostio(&text) - }}; - } - let message = comm_map.get(&msg_num).unwrap_or(&[0; 32]); if out_ptr + 32 > sp.memory_size() { - error!("memory bounds exceeded in {name}"); + let text = format!("memory bounds exceeded in {}", name); + return Escape::hostio(&text); } sp.write_slice(out_ptr, message); sp.write_u64(5, 32);