Commit 91aef25
committed
Adapt
`criterion` 0.6.0 deprecates `criterion::black_box()`, preferring
`std::hint::black_box()` (which `criterion::black_box()` now
consists of a call to).
This commit makes the recommended switch, in benches for
`gix-config` and `gix-object` where `criterion::black_box()` was
used, to `std::hint::black_box()`, fixing new clippy errors.
Fuzz tests have also been using `black_box()`, but they already
imported it from `std::hint`, and thus need no corresponding fix.gix-config/gix-object benches to changes in criterion
1 parent eccd13a commit 91aef25
File tree
3 files changed
+6
-4
lines changed- gix-config/benches
- gix-object/benches
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments