From 93216a16eaca02fd8ca827a5729f5348eb672676 Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Fri, 25 Oct 2024 00:53:06 +0200 Subject: [PATCH] fmt --- utxo/src/utxo_core.rs | 14 ++++++++++++-- utxo/src/utxo_tree.rs | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/utxo/src/utxo_core.rs b/utxo/src/utxo_core.rs index 3e70d99..834c4c1 100644 --- a/utxo/src/utxo_core.rs +++ b/utxo/src/utxo_core.rs @@ -80,7 +80,11 @@ mod tests { fn sample_payload() -> UTXOPayload { UTXOPayload { owner: sample_account(), - asset: serde_json::to_vec(&TestAsset { id: 1, name: "Test".to_string() }).unwrap(), + asset: serde_json::to_vec(&TestAsset { + id: 1, + name: "Test".to_string(), + }) + .unwrap(), } } @@ -119,7 +123,13 @@ mod tests { // Interpret asset as TestAsset let interpreted: TestAsset = utxo.interpret_asset().unwrap(); - assert_eq!(interpreted, TestAsset { id: 1, name: "Test".to_string() }); + assert_eq!( + interpreted, + TestAsset { + id: 1, + name: "Test".to_string() + } + ); } #[test] diff --git a/utxo/src/utxo_tree.rs b/utxo/src/utxo_tree.rs index 9e78aff..b391fc0 100644 --- a/utxo/src/utxo_tree.rs +++ b/utxo/src/utxo_tree.rs @@ -76,8 +76,8 @@ impl Default for UTXOSparseMerkleTree { #[cfg(test)] mod tests { use super::*; + use crate::utxo_core::{UTXOPayload, UTXO}; use storage::{merkle_tree_public::TreeHashType, AccountId}; - use crate::utxo_core::{UTXO, UTXOPayload}; fn sample_utxo_payload() -> UTXOPayload { UTXOPayload {