Add a basic CI #4
clippy
11 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 11 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.0 (79e9716c9 2023-11-13)
- cargo 1.74.0 (ecb9851af 2023-10-18)
- clippy 0.1.74 (79e9716 2023-11-13)
Annotations
Check failure on line 49 in src/lib.rs
github-actions / clippy
unused import: `num_traits::Float`
error: unused import: `num_traits::Float`
--> src/lib.rs:49:5
|
49 | use num_traits::Float;
| ^^^^^^^^^^^^^^^^^
Check failure on line 10 in src/tle.rs
github-actions / clippy
unused import: `num_traits::Float`
error: unused import: `num_traits::Float`
--> src/tle.rs:10:5
|
10 | use num_traits::Float;
| ^^^^^^^^^^^^^^^^^
Check failure on line 2 in src/third_body.rs
github-actions / clippy
unused import: `num_traits::Float`
error: unused import: `num_traits::Float`
--> src/third_body.rs:2:5
|
2 | use num_traits::Float;
| ^^^^^^^^^^^^^^^^^
Check failure on line 6 in src/near_earth.rs
github-actions / clippy
unused import: `num_traits::Float`
error: unused import: `num_traits::Float`
--> src/near_earth.rs:6:5
|
6 | use num_traits::Float;
| ^^^^^^^^^^^^^^^^^
Check failure on line 2 in src/model.rs
github-actions / clippy
unused import: `num_traits::Float`
error: unused import: `num_traits::Float`
--> src/model.rs:2:5
|
2 | use num_traits::Float;
| ^^^^^^^^^^^^^^^^^
Check failure on line 5 in src/model.rs
github-actions / clippy
unused import: `num_traits::Euclid`
error: unused import: `num_traits::Euclid`
--> src/model.rs:5:5
|
5 | use num_traits::Euclid;
| ^^^^^^^^^^^^^^^^^^
Check failure on line 11 in src/deep_space.rs
github-actions / clippy
unused import: `num_traits::Euclid`
error: unused import: `num_traits::Euclid`
--> src/deep_space.rs:11:5
|
11 | use num_traits::Euclid;
| ^^^^^^^^^^^^^^^^^^
Check failure on line 8 in src/deep_space.rs
github-actions / clippy
unused import: `num_traits::Float`
error: unused import: `num_traits::Float`
--> src/deep_space.rs:8:5
|
8 | use num_traits::Float;
| ^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
Check failure on line 112 in src/model.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/model.rs:112:17
|
92 | pub fn afspc_epoch_to_sidereal_time(epoch: f64) -> f64 {
| --- expected `f64` because of return type
...
112 | &(2.0 * core::f64::consts::PI)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `f64`, found `&f64`
|
help: consider removing the borrow
|
112 - &(2.0 * core::f64::consts::PI)
112 + (2.0 * core::f64::consts::PI)
|
Check failure on line 80 in src/model.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/model.rs:80:17
|
61 | pub fn iau_epoch_to_sidereal_time(epoch: f64) -> f64 {
| --- expected `f64` because of return type
...
80 | &(2.0 * core::f64::consts::PI)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `f64`, found `&f64`
|
help: consider removing the borrow
|
80 - &(2.0 * core::f64::consts::PI)
80 + (2.0 * core::f64::consts::PI)
|
Check failure on line 754 in src/deep_space.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/deep_space.rs:754:37
|
754 | ... &(2.0 * core::f64::consts::PI)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `f64`, found `&f64`
|
help: consider removing the borrow
|
754 - &(2.0 * core::f64::consts::PI)
754 + (2.0 * core::f64::consts::PI)
|