From ad642dbb6a19ab1ea822450566deddabedca592d Mon Sep 17 00:00:00 2001 From: yp945 Date: Tue, 30 Jan 2024 11:35:15 +0800 Subject: [PATCH] cargo fmt all. --- examples/book_decode.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/book_decode.rs b/examples/book_decode.rs index 0136e55..077e560 100644 --- a/examples/book_decode.rs +++ b/examples/book_decode.rs @@ -12,16 +12,20 @@ fn main() { let input_data = vec![60, 5, 111, 108, 97, 118, 109, 7, 120553111]; - // Decode input + // Decode input let (func, decoded_data) = abi.decode_input_from_slice(&input_data).unwrap(); - println!("decode function input {:?}\n data {:?}", func.name, decoded_data); + println!( + "decode function input {:?}\n data {:?}", + func.name, decoded_data + ); // Decode output "hello" let output_data = vec![5, 104, 101, 108, 108, 111, 6]; - let decoded_data = abi.decode_output_from_slice(abi.functions[1].signature().as_str(), &output_data).unwrap(); + let decoded_data = abi + .decode_output_from_slice(abi.functions[1].signature().as_str(), &output_data) + .unwrap(); println!("decode function output {:?}\n", decoded_data); - }