Skip to content

Commit

Permalink
Merge branch 'bugfix/satisfy-clippy' of https://github.com/dwmunster/…
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasJacob committed Jun 3, 2024
2 parents bbe2ec6 + 53a539d commit 2c0f625
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 92 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: CI
on:
workflow_dispatch:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]
branches: [ main ]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -52,4 +52,4 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-features -- -D warnings
- run: cargo clippy --all-features -- -D warnings -A clippy::empty_docs
2 changes: 1 addition & 1 deletion benches/solvers/circle_with_lines_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn circle(n: usize) -> Vec<Vector2<f64>> {
let mut points = Vec::new();
for i in 0..n {
let x = ((i + 1) / 2) as f64 * 0.8;
let y = ((i + 0) / 2) as f64 * 0.8;
let y = (i / 2) as f64 * 0.8;
points.push(Vector2::new(x, y));
}
points
Expand Down
2 changes: 1 addition & 1 deletion benches/solvers/stairs_with_lines_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Benchmark for StairsWithLinesBenchmark {
for i in 0..self.point_references.len() - 1 {
let point = self.point_references[i].as_ref().borrow();
let true_x = ((i + 1) / 2) as f64 * 0.8;
let true_y = ((i + 0) / 2) as f64 * 0.8;
let true_y = (i / 2) as f64 * 0.8;
if (point.x() - true_x).abs() > eps || (point.y() - true_y).abs() > eps {
return false;
}
Expand Down
Loading

0 comments on commit 2c0f625

Please sign in to comment.