Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Jun 15, 2024
1 parent 642ea70 commit 8902974
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/src/builder/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ use crate::{
},
print_duration,
time::{AddAssign, Duration, Instant},
utils::{check_anchor_tx, generate_transactions}, CycleTracker,
utils::{check_anchor_tx, generate_transactions},
CycleTracker,
};

/// Minimum supported protocol version: SHANGHAI
Expand Down
3 changes: 2 additions & 1 deletion lib/src/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ use crate::{
consts::ChainSpec,
input::GuestInput,
mem_db::MemDb,
primitives::mpt::MptNode, CycleTracker,
primitives::mpt::MptNode,
CycleTracker,
};

pub mod execute;
Expand Down
7 changes: 3 additions & 4 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ mod time {
}

pub struct CycleTracker {
title: String
title: String,
}

impl CycleTracker {
pub fn start(title: &str) -> CycleTracker {
let ct = CycleTracker {
title: title.to_string()
title: title.to_string(),
};
#[cfg(all(
all(target_os = "zkvm", target_vendor = "succinct"),
Expand All @@ -108,10 +108,9 @@ impl CycleTracker {
feature = "sp1-cycle-tracker"
))]
println!("cycle-tracker-end: {self.title}");
}
}
}


pub struct Measurement {
start: time::Instant,
title: String,
Expand Down

0 comments on commit 8902974

Please sign in to comment.