Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 18, 2021
1 parent aa8f300 commit cd9f38c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -29,9 +29,9 @@ serde = { version = "1.0", default-features = false, optional = true }
[dev-dependencies]
criterion = "0.3"
rustc-hex = "2.1"
faster-hex = "0.5"
faster-hex = "0.6"
version-sync = "0.9"
pretty_assertions = "0.6"
pretty_assertions = "0.7"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

Expand Down
8 changes: 4 additions & 4 deletions benches/hex.rs
Expand Up @@ -9,7 +9,7 @@ fn bench_encode(c: &mut Criterion) {
c.bench_function("rustc_hex_encode", |b| b.iter(|| DATA.to_hex::<String>()));

c.bench_function("faster_hex_encode", |b| {
b.iter(|| faster_hex::hex_string(DATA).unwrap())
b.iter(|| faster_hex::hex_string(DATA))
});

c.bench_function("faster_hex_encode_fallback", |b| {
Expand All @@ -33,23 +33,23 @@ fn bench_decode(c: &mut Criterion) {
});

c.bench_function("faster_hex_decode", move |b| {
let hex = faster_hex::hex_string(DATA).unwrap();
let hex = faster_hex::hex_string(DATA);
let len = DATA.len();
let mut dst = vec![0; len];

b.iter(|| faster_hex::hex_decode(hex.as_bytes(), &mut dst).unwrap())
});

c.bench_function("faster_hex_decode_unchecked", |b| {
let hex = faster_hex::hex_string(DATA).unwrap();
let hex = faster_hex::hex_string(DATA);
let len = DATA.len();
let mut dst = vec![0; len];

b.iter(|| faster_hex::hex_decode_unchecked(hex.as_bytes(), &mut dst))
});

c.bench_function("faster_hex_decode_fallback", |b| {
let hex = faster_hex::hex_string(DATA).unwrap();
let hex = faster_hex::hex_string(DATA);
let len = DATA.len();
let mut dst = vec![0; len];

Expand Down
2 changes: 0 additions & 2 deletions tests/version-number.rs
@@ -1,5 +1,3 @@
#![allow(non_fmt_panic)]

#[test]
fn test_readme_deps() {
version_sync::assert_markdown_deps_updated!("README.md");
Expand Down

0 comments on commit cd9f38c

Please sign in to comment.