Merge pull request #3 from danieleades/ci #1
Annotations
3 warnings
Run actions-rs-plus/clippy-check@v2:
rustc/da935398d582344c5b7689bd6632d8ec01b0c988/library/core/src/macros/mod.rs#L46
warning: strict comparison of `f32` or `f64`
--> src/lib.rs:920:9
|
920 | assert_eq!(mod2pi(2. * PI), 0.);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
note: the lint level is defined here
--> src/lib.rs:1:23
|
1 | #![warn(missing_docs, clippy::pedantic, clippy::all, clippy::nursery)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::float_cmp)]` implied by `#[warn(clippy::pedantic)]`
= note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
Run actions-rs-plus/clippy-check@v2:
src/lib.rs#L981
warning: consider adding a `;` to the last statement for consistent formatting
--> src/lib.rs:981:9
|
981 | assert_eq!(error, 0)
| ^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `assert_eq!(error, 0);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `#[warn(clippy::semicolon_if_nothing_returned)]` implied by `#[warn(clippy::pedantic)]`
|
Run actions-rs-plus/clippy-check@v2:
src/lib.rs#L958
warning: this could be rewritten as `let...else`
--> src/lib.rs:958:13
|
958 | / let path = match DubinsPath::shortest_from(q0, q1, TURN_RADIUS) {
959 | | Ok(p) => p,
960 | | Err(_) => continue,
961 | | };
| |______________^ help: consider writing: `let Ok(path) = DubinsPath::shortest_from(q0, q1, TURN_RADIUS) else { continue };`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
= note: `#[warn(clippy::manual_let_else)]` implied by `#[warn(clippy::pedantic)]`
|
Loading