Skip to content

Commit

Permalink
more clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiqwerty committed Aug 14, 2023
1 parent 3a9bcb7 commit 11db2e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
args: --workspace --all-targets --all-features -- -D warnings -W clippy::all

trunk:
name: trunk
Expand Down
6 changes: 3 additions & 3 deletions src/charts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@ fn test_add_fraction() {
}
}
let fracs = vec![];
assert_v(&add_fraction(fracs), &vec![1.0]);
assert_v(&add_fraction(fracs), &[1.0]);
let fracs = vec![1.0];
assert_v(&add_fraction(fracs), &vec![0.5, 0.5]);
assert_v(&add_fraction(fracs), &[0.5, 0.5]);
let fracs = vec![0.5, 0.5];
assert_v(&add_fraction(fracs), &vec![1.0 / 3.0; 3]);
assert_v(&add_fraction(fracs), &[1.0 / 3.0; 3]);
}

#[test]
Expand Down

0 comments on commit 11db2e0

Please sign in to comment.