Skip to content

Commit

Permalink
divan::black_box_drop
Browse files Browse the repository at this point in the history
  • Loading branch information
CrockAgile committed Dec 5, 2023
1 parent 3cd803a commit 5a10d73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ features = ["derive"]
version = "1.0.61"

[dev-dependencies]
divan = "0.1.4"
divan = "0.1.5"
insta = { version = "1.26.0", default-features = false }

[dev-dependencies.quickcheck]
Expand Down
4 changes: 2 additions & 2 deletions benches/divan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mod examples {
let input = random_walks.next().unwrap();
polish_calc_grammar
.parse_input(&input)
.for_each(|v| _ = divan::black_box(v));
.for_each(divan::black_box_drop);
});
}

Expand All @@ -101,7 +101,7 @@ mod examples {
infinite_grammar
.parse_input("")
.take(parse_count)
.for_each(|v| _ = divan::black_box(v));
.for_each(divan::black_box_drop);
});
}
}

0 comments on commit 5a10d73

Please sign in to comment.