Skip to content

Commit

Permalink
fix cli
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Jan 17, 2024
1 parent 7419ed8 commit 646a7c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion miden/src/cli/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ use std::{
use stdlib::StdLibrary;
pub use tracing::{event, info_span, instrument, trace_span, Level};

Check warning on line 17 in miden/src/cli/data.rs

View workflow job for this annotation

GitHub Actions / Check Rust stable on ubuntu with --all-targets --all-features

unused imports: `info_span`, `trace_span`

Check warning on line 17 in miden/src/cli/data.rs

View workflow job for this annotation

GitHub Actions / Check Rust nightly on ubuntu with --all-targets --all-features

unused imports: `info_span`, `trace_span`

// CONSTANTS
// ================================================================================================
const SIMPLE_SMT_DEPTH: u8 = u64::BITS as u8;

// HELPERS
// ================================================================================================

Expand Down Expand Up @@ -206,7 +210,7 @@ impl InputFile {
}
MerkleData::SparseMerkleTree(data) => {
let entries = Self::parse_sparse_merkle_tree(data)?;
let tree = SimpleSmt::with_leaves(u64::BITS as u8, entries)
let tree = SimpleSmt::<SIMPLE_SMT_DEPTH>::with_leaves(entries)
.map_err(|e| format!("failed to parse a Sparse Merkle Tree: {e}"))?;
merkle_store.extend(tree.inner_nodes());
event!(
Expand Down

0 comments on commit 646a7c8

Please sign in to comment.