From 0754a5ff2c42674485ace5738b563d1f30b1a2a0 Mon Sep 17 00:00:00 2001 From: Avi Dessauer Date: Mon, 18 Mar 2024 15:01:26 -0500 Subject: [PATCH] Cleanup --- src/lib.rs | 6 ++++-- src/transaction/nodes.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d13142a..354ce4b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,8 +8,10 @@ use core::fmt::{Debug, Display}; pub mod stored; mod transaction; -pub use transaction::nodes::{Branch, Leaf, Node, TrieRoot}; -pub use transaction::Transaction; +pub use transaction::{ + nodes::{Branch, Leaf, Node, TrieRoot}, + Transaction, +}; #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] pub struct KeyHash(pub [u32; 8]); diff --git a/src/transaction/nodes.rs b/src/transaction/nodes.rs index 8baec36..e01bac4 100644 --- a/src/transaction/nodes.rs +++ b/src/transaction/nodes.rs @@ -1,6 +1,6 @@ +use alloc::{boxed::Box, vec::Vec}; use core::{iter, mem}; -use alloc::{boxed::Box, vec::Vec}; use sha2::{Digest, Sha256}; use crate::{stored, KeyHash, NodeHash};