Skip to content

Commit

Permalink
chore(stdlib): Don't clone stdlib forest
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Oct 25, 2024
1 parent 660ad95 commit 0f76408
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stdlib/tests/mast_forest_merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ use processor::MastForest;
/// implemented and the StdLib serves as a convenient example of a large MastForest.
#[test]
fn mast_forest_merge_stdlib() {
let std_forest = miden_stdlib::StdLibrary::default().mast_forest().as_ref().clone();
let std_lib = miden_stdlib::StdLibrary::default();
let std_forest = std_lib.mast_forest().as_ref();

let (merged, _) = MastForest::merge([&std_forest, &std_forest]).unwrap();
let (merged, _) = MastForest::merge([std_forest, std_forest]).unwrap();

let merged_digests = merged.procedure_digests().collect::<Vec<_>>();
for digest in std_forest.procedure_digests() {
Expand Down

0 comments on commit 0f76408

Please sign in to comment.