Skip to content

Commit

Permalink
Print minimized code in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jul 20, 2023
1 parent 8a9d85e commit 963a352
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/ruff_shrinking/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,10 @@ fn run() -> Result<()> {

println!("Strategies taken: {stats:?}");
println!(
"Done with {num_iterations} iterations in {:.2}s. Find your minimized example in {}",
"Done with {num_iterations} iterations in {:.2}s. Find your minimized example in {}:\n---\n{}\n---\n",
loop_start.elapsed().as_secs_f32(),
args.output_file.display()
args.output_file.display(),
input
);

Ok(())
Expand Down

0 comments on commit 963a352

Please sign in to comment.