Skip to content

Commit 2b3a607

Browse files
Bump the dependencies group across 1 directory with 3 updates (#15)
* Bump the dependencies group across 1 directory with 3 updates Bumps the dependencies group with 3 updates in the / directory: [clap](https://github.com/clap-rs/clap), [criterion](https://github.com/bheisler/criterion.rs) and [miette](https://github.com/zkat/miette). Updates `clap` from 4.5.26 to 4.5.38 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](clap-rs/clap@clap_complete-v4.5.26...clap_complete-v4.5.38) Updates `criterion` from 0.5.1 to 0.6.0 - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](bheisler/criterion.rs@0.5.1...0.6.0) Updates `miette` from 7.4.0 to 7.6.0 - [Release notes](https://github.com/zkat/miette/releases) - [Changelog](https://github.com/zkat/miette/blob/main/CHANGELOG.md) - [Commits](zkat/miette@miette-derive-v7.4.0...miette-derive-v7.6.0) --- updated-dependencies: - dependency-name: clap dependency-version: 4.5.38 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: criterion dependency-version: 0.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: miette dependency-version: 7.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * Replace use of deprecated function * Fix clippy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aemulation <[email protected]>
1 parent 6b4572b commit 2b3a607

4 files changed

Lines changed: 33 additions & 62 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ all = { level = "warn", priority = -1 }
1818
pedantic = { level = "warn", priority = -1 }
1919

2020
[dependencies]
21-
clap = { version = "4.5.26", features = ["derive"] }
22-
criterion = "0.5.1"
23-
miette = { version = "7.2.0", features = ["fancy"] }
21+
clap = { version = "4.5.38", features = ["derive"] }
22+
criterion = "0.6.0"
23+
miette = { version = "7.6.0", features = ["fancy"] }
2424
openvino = { git = "https://github.com/Rickvanderveen/openvino-rs.git", rev = "eef188a4f0fd52020bfe95822ead35f37ee4efaf", features = [
2525
"runtime-linking",
2626
] }

src/benchmark.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::path::Path;
22

3-
use criterion::{black_box, Criterion};
3+
use criterion::Criterion;
44
use miette::{miette, Context, IntoDiagnostic, Result};
55
use openvino::CompiledModel;
66

@@ -30,7 +30,7 @@ pub fn run_benchmark_onnx(path: impl AsRef<Path>, c: &mut Criterion) -> Result<(
3030
.create_infer_request()
3131
.expect("failed to create inference request");
3232

33-
black_box(request)
33+
std::hint::black_box(request)
3434
.infer()
3535
.expect("failed to complete inference");
3636
});

src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ fn main() -> miette::Result<()> {
2121

2222
let model_path = args.model_path;
2323
if !model_path.exists() {
24-
eprintln!("Model file not found: {model_path:?}");
24+
eprintln!("Model file not found: {}", model_path.display());
2525
std::process::exit(1);
2626
}
2727

2828
let Some(model_path_str) = model_path.to_str() else {
29-
eprintln!("Model file path is not valid UTF-8: {model_path:?}");
29+
eprintln!(
30+
"Model file path is not valid UTF-8: {}",
31+
model_path.display()
32+
);
3033
std::process::exit(1);
3134
};
3235

0 commit comments

Comments
 (0)