From bd98c47f868cc7bd9d59f550c5b0830e5ea046b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cain=C3=A3=20Costa?= Date: Mon, 29 Jul 2024 22:32:05 -0300 Subject: [PATCH] chore: minor --- circuits/guest/src/bin/fission.rs | 9 +-------- circuits/guest/src/bin/fusion.rs | 10 +--------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/circuits/guest/src/bin/fission.rs b/circuits/guest/src/bin/fission.rs index 73955db..73f8076 100644 --- a/circuits/guest/src/bin/fission.rs +++ b/circuits/guest/src/bin/fission.rs @@ -3,7 +3,7 @@ use mugraph_core::{BlindedNote, Hash, Result, Split, CHANGE_SEP, OUTPUT_SEP}; use risc0_zkvm::guest::env; #[inline(always)] -fn run() -> Result<()> { +fn main() -> Result<()> { let mut buf = [0u8; Split::SIZE]; let mut out = [0u8; BlindedNote::SIZE]; let mut chan = [0u8; BlindedNote::SIZE]; @@ -50,10 +50,3 @@ fn run() -> Result<()> { Ok(()) } - -fn main() { - match run() { - Ok(_) => {} - Err(e) => panic!("{}", e), - } -} diff --git a/circuits/guest/src/bin/fusion.rs b/circuits/guest/src/bin/fusion.rs index 9194fe0..a12c0fd 100644 --- a/circuits/guest/src/bin/fusion.rs +++ b/circuits/guest/src/bin/fusion.rs @@ -4,8 +4,7 @@ use mugraph_core::{BlindedNote, Hash, Join, Result, OUTPUT_SEP}; use risc0_zkvm::guest::env; -#[inline(always)] -fn run() -> Result<()> { +fn main() -> Result<()> { let mut buf = [0u8; Join::SIZE]; env::read_slice(&mut buf); @@ -37,10 +36,3 @@ fn run() -> Result<()> { Ok(()) } - -fn main() { - match run() { - Ok(_) => {} - Err(e) => panic!("{}", e), - } -}