Skip to content

Commit

Permalink
update clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ielashi committed Jan 22, 2024
1 parent 3be7cc0 commit a110c1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = ["canbench-bin", "canbench-rs", "canbench-rs-macros"]
resolver = "2"

[workspace.dependencies]
candid = "0.9.11"
Expand Down
4 changes: 2 additions & 2 deletions canbench-bin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn run_benchmarks(
println!("---------------------------------------------------");
println!();

let result = run_benchmark(canister_wasm_path, &bench_fn);
let result = run_benchmark(canister_wasm_path, bench_fn);

// Compare result to previous result if that exists.
if let Some(current_result) = current_results.get(&bench_fn.to_string()) {
Expand Down Expand Up @@ -214,7 +214,7 @@ query rwlgt-iiaaa-aaaaa-aaaaa-cai {}{} \"DIDL\x00\x00\"",

// Decode the response.
Decode!(
&hex::decode(&result_hex[2..]).expect(&format!(
&hex::decode(&result_hex[2..]).unwrap_or_else(|_| panic!(
"error parsing result of benchmark {}. Result: {}",
bench_fn, result_hex
)),
Expand Down

0 comments on commit a110c1d

Please sign in to comment.