caelum0x 8af85c6e28 style: format workspace to rustfmt.toml (use_small_heuristics = Max)
Bring the whole workspace into compliance with the repo's rustfmt config
(edition 2024, max_width 100, use_small_heuristics = "Max"), which had drifted
across many crates. Pure formatting — no logic changes; `cargo fmt --check` is
now clean and `cargo build --workspace` is green.
2026-08-18 16:59:40 +03:00

18 lines
533 B
Rust

use lawsynth_core::{ProgressStage, ProgressTracker};
fn main() {
let mut tracker = ProgressTracker::default();
for (fraction, message) in [(0.0, "accepted input"), (0.5, "building features"), (1.0, "done")]
{
let event =
tracker.report(ProgressStage::Features, fraction, message).expect("valid progress");
println!(
"#{:03} {:?}: {:.0}% — {}",
event.sequence,
event.stage,
event.fraction * 100.0,
event.message
);
}
}