From 0b0a08a24e068f072a24436e6febfff8de90929f Mon Sep 17 00:00:00 2001 From: "[gavin-ygy]" <[gavin.ygy@gmail.com]> Date: Mon, 23 Sep 2024 11:25:00 +0800 Subject: [PATCH] fix fmt --- host-program/src/bin/add-go-prove.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/host-program/src/bin/add-go-prove.rs b/host-program/src/bin/add-go-prove.rs index 4354e177..62fb3a02 100644 --- a/host-program/src/bin/add-go-prove.rs +++ b/host-program/src/bin/add-go-prove.rs @@ -98,20 +98,21 @@ async fn main() -> Result<(), Box> { .write(prover_result.solidity_verifier.as_slice()); } else { if prover_result.output_stream.is_empty() { - log::info!("output_stream.len() is too short: {}", prover_result.output_stream.len()); + log::info!( + "output_stream.len() is too short: {}", + prover_result.output_stream.len() + ); return Ok(()); } log::info!("Executing the guest program successfully."); let ret_data: Data = bincode::deserialize_from(prover_result.output_stream.as_slice()) - .expect("deserialization failed"); + .expect("deserialization failed"); log::info!("ret_data: {:?}", ret_data); } - } Ok(None) => { log::info!("Failed to generate proof.The result is None."); - return Ok(None); } Err(e) => { log::info!("Failed to generate proof. error: {}", e);