Skip to content

Commit

Permalink
Fix some clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
atomflunder committed May 24, 2024
1 parent 46b066e commit ef5dc58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions benches/benchmarks/weng_lin_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn weng_lin_two_teams_benchmark(c: &mut Criterion) {
}

pub fn weng_lin_multi_team_benchmark(c: &mut Criterion) {
let team_one = vec![
let team_one = [
WengLinRating {
rating: 32.1,
uncertainty: 4.233,
Expand All @@ -104,7 +104,7 @@ pub fn weng_lin_multi_team_benchmark(c: &mut Criterion) {
uncertainty: 1.34,
},
];
let team_two = vec![
let team_two = [
WengLinRating {
rating: 29.1,
uncertainty: 4.233,
Expand All @@ -122,7 +122,7 @@ pub fn weng_lin_multi_team_benchmark(c: &mut Criterion) {
uncertainty: 1.34,
},
];
let team_three = vec![
let team_three = [
WengLinRating {
rating: 13.1,
uncertainty: 4.233,
Expand Down
4 changes: 2 additions & 2 deletions src/weng_lin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ mod tests {
#[test]
#[allow(clippy::cognitive_complexity)]
fn test_weng_multi_team_two() {
let t1 = vec![
let t1 = [
WengLinRating::new(),
WengLinRating {
rating: 30.0,
Expand All @@ -1161,7 +1161,7 @@ mod tests {
},
];

let t2 = vec![
let t2 = [
WengLinRating::default(),
WengLinRating {
rating: 41.0,
Expand Down

0 comments on commit ef5dc58

Please sign in to comment.