Skip to content

Commit 8b798cd

Browse files
authored
Bump criterion from 0.5.1 to 0.7.0 (#973)
1 parent 59a58e4 commit 8b798cd

File tree

3 files changed

+11
-38
lines changed

3 files changed

+11
-38
lines changed

Cargo.lock

Lines changed: 7 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modeling-cmds-macros-impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ syn = { workspace = true, features = ["extra-traits", "full"] }
1717

1818
[dev-dependencies]
1919
anyhow = "1.0.97"
20-
criterion = { version = "0.5", features = ["html_reports"] }
20+
criterion = { version = "0.7", features = ["html_reports"] }
2121
insta = "1.41.1"
2222
regex = "1.11.1"
2323
rustfmt-wrapper = "0.2.1"

modeling-cmds-macros-impl/benches/my_benchmark.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
1+
use std::hint::black_box;
2+
3+
use criterion::{criterion_group, criterion_main, Criterion};
24

35
fn criterion_benchmark(c: &mut Criterion) {
46
let input: syn::ItemMod = syn::parse_quote! {

0 commit comments

Comments
 (0)