Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Remco Bloemen committed Sep 10, 2019
1 parent 559afdd commit 5ca8487
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stark/src/proofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,14 @@ where
{
info!("Starting Stark proof.");
info!("Proof parameters: {:?}", params);
// TODO: Use a proper size human formating function
#[allow(clippy::cast_precision_loss)]
let size_mb = (trace.num_rows() * trace.num_columns() * 32) as f64 / 1_000_000_f64;
info!(
"Trace table {} rows {} columns ({} MB)",
trace.num_rows(),
trace.num_columns(),
(trace.num_rows() * trace.num_columns() * 32) as f64 / 1000_000_f64
size_mb
);
info!("Constraint system {} constraints", constraints.len());

Expand Down

0 comments on commit 5ca8487

Please sign in to comment.