diff --git a/lib/src/builder/execute.rs b/lib/src/builder/execute.rs index 8b9ff194f..ccf063670 100644 --- a/lib/src/builder/execute.rs +++ b/lib/src/builder/execute.rs @@ -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 diff --git a/lib/src/builder/mod.rs b/lib/src/builder/mod.rs index 88101d2a4..be76fe72b 100644 --- a/lib/src/builder/mod.rs +++ b/lib/src/builder/mod.rs @@ -26,7 +26,8 @@ use crate::{ consts::ChainSpec, input::GuestInput, mem_db::MemDb, - primitives::mpt::MptNode, CycleTracker, + primitives::mpt::MptNode, + CycleTracker, }; pub mod execute; diff --git a/lib/src/lib.rs b/lib/src/lib.rs index e67ab0f6d..dd745d79f 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -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"), @@ -108,10 +108,9 @@ impl CycleTracker { feature = "sp1-cycle-tracker" ))] println!("cycle-tracker-end: {self.title}"); - } + } } - pub struct Measurement { start: time::Instant, title: String,