Skip to content

Commit

Permalink
Fixed rust-bench linter, added BSD 2-clause to the allowed licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Jul 2, 2023
1 parent f630e1d commit ee4a1ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async fn perform_benchmark(args: Args) {
.unwrap();
}

fn calculate_latencies(values: &Vec<Duration>, prefix: &str) -> HashMap<String, Value> {
fn calculate_latencies(values: &[Duration], prefix: &str) -> HashMap<String, Value> {
let values: Vec<f64> = values
.iter()
.map(|duration| duration.as_secs_f64() / 1000.0)
Expand Down
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"Unicode-DFS-2016",
"ISC",
Expand Down

0 comments on commit ee4a1ff

Please sign in to comment.