create recovery timer mechanism #282
clippy
9 errors, 63 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 9 |
Warning | 63 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.0 (aedd173a2 2024-03-17)
- cargo 1.77.0 (3fe68eabf 2024-02-29)
- clippy 0.1.77 (aedd173 2024-03-17)
Annotations
Check failure on line 112 in boards/recovery/src/data_manager.rs
github-actions / clippy
failed to resolve: use of undeclared crate or module `recovery_counter_tick`
error[E0433]: failed to resolve: use of undeclared crate or module `recovery_counter_tick`
--> boards/recovery/src/data_manager.rs:112:32
|
112 | spawn!(recovery_counter_tick);
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `recovery_counter_tick`
Check warning on line 26 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `types::COM_ID`
warning: unused import: `types::COM_ID`
--> boards/recovery/src/main.rs:26:5
|
26 | use types::COM_ID;
| ^^^^^^^^^^^^^
Check warning on line 25 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `systick_monotonic::*`
warning: unused import: `systick_monotonic::*`
--> boards/recovery/src/main.rs:25:5
|
25 | use systick_monotonic::*;
| ^^^^^^^^^^^^^^^^^^^^
Check warning on line 24 in boards/recovery/src/main.rs
github-actions / clippy
unused imports: `StateMachineContext`, `StateMachine`
warning: unused imports: `StateMachineContext`, `StateMachine`
--> boards/recovery/src/main.rs:24:21
|
24 | use state_machine::{StateMachine, StateMachineContext};
| ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
Check warning on line 23 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `messages::*`
warning: unused import: `messages::*`
--> boards/recovery/src/main.rs:23:5
|
23 | use messages::*;
| ^^^^^^^^^^^
Check warning on line 22 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `mcan::messageram::SharedMemory`
warning: unused import: `mcan::messageram::SharedMemory`
--> boards/recovery/src/main.rs:22:5
|
22 | use mcan::messageram::SharedMemory;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 21 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `hal::prelude::*`
warning: unused import: `hal::prelude::*`
--> boards/recovery/src/main.rs:21:5
|
21 | use hal::prelude::*;
| ^^^^^^^^^^^^^^^
Check warning on line 20 in boards/recovery/src/main.rs
github-actions / clippy
unused imports: `PB16`, `PB17`, `Pin`, `Pins`, `PushPullOutput`
warning: unused imports: `PB16`, `PB17`, `Pin`, `Pins`, `PushPullOutput`
--> boards/recovery/src/main.rs:20:17
|
20 | use hal::gpio::{Pin, Pins, PushPullOutput, PB16, PB17};
| ^^^ ^^^^ ^^^^^^^^^^^^^^ ^^^^ ^^^^
Check warning on line 19 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `gpio_manager::GPIOManager`
warning: unused import: `gpio_manager::GPIOManager`
--> boards/recovery/src/main.rs:19:5
|
19 | use gpio_manager::GPIOManager;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 18 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `data_manager::DataManager`
warning: unused import: `data_manager::DataManager`
--> boards/recovery/src/main.rs:18:5
|
18 | use data_manager::DataManager;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 17 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `communication::Capacities`
warning: unused import: `communication::Capacities`
--> boards/recovery/src/main.rs:17:5
|
17 | use communication::Capacities;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 16 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `common_arm::*`
warning: unused import: `common_arm::*`
--> boards/recovery/src/main.rs:16:5
|
16 | use common_arm::*;
| ^^^^^^^^^^^^^
Check warning on line 14 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `common_arm::hinfo`
warning: unused import: `common_arm::hinfo`
--> boards/recovery/src/main.rs:14:5
|
14 | use common_arm::hinfo;
| ^^^^^^^^^^^^^^^^^
Check warning on line 13 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `atsamd_hal::dmac::DmaController`
warning: unused import: `atsamd_hal::dmac::DmaController`
--> boards/recovery/src/main.rs:13:5
|
13 | use atsamd_hal::dmac::DmaController;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 12 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `atsamd_hal::clock::v2::Source`
warning: unused import: `atsamd_hal::clock::v2::Source`
--> boards/recovery/src/main.rs:12:5
|
12 | use atsamd_hal::clock::v2::Source;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 11 in boards/recovery/src/main.rs
github-actions / clippy
unused import: `atsamd_hal::clock::v2::pclk::Pclk`
warning: unused import: `atsamd_hal::clock::v2::pclk::Pclk`
--> boards/recovery/src/main.rs:11:5
|
11 | use atsamd_hal::clock::v2::pclk::Pclk;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 109 in boards/recovery/src/data_manager.rs
github-actions / clippy
unnecessary parentheses around `if` condition
warning: unnecessary parentheses around `if` condition
--> boards/recovery/src/data_manager.rs:109:28
|
109 | if (self.recovery_counter >= 15) {
| ^ ^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
109 - if (self.recovery_counter >= 15) {
109 + if self.recovery_counter >= 15 {
|
Check warning on line 3 in boards/recovery/src/data_manager.rs
github-actions / clippy
unused import: `atsamd_hal::timer::TimerCounter2`
warning: unused import: `atsamd_hal::timer::TimerCounter2`
--> boards/recovery/src/data_manager.rs:3:5
|
3 | use atsamd_hal::timer::TimerCounter2;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check failure on line 35 in boards/recovery/src/state_machine/mod.rs
github-actions / clippy
failed to resolve: could not find `app` in the crate root
error[E0433]: failed to resolve: could not find `app` in the crate root
--> boards/recovery/src/state_machine/mod.rs:35:42
|
35 | pub shared_resources: &'b mut crate::app::__rtic_internal_run_smSharedResources<'a>,
| ^^^ could not find `app` in the crate root
Check failure on line 22 in boards/recovery/src/state_machine/mod.rs
github-actions / clippy
failed to resolve: could not find `app` in the crate root
error[E0433]: failed to resolve: could not find `app` in the crate root
--> boards/recovery/src/state_machine/mod.rs:22:49
|
22 | impl<'a> StateMachineSharedResources for crate::app::__rtic_internal_run_smSharedResources<'a> {
| ^^^ could not find `app` in the crate root
Check failure on line 2 in boards/recovery/src/state_machine/states/wait_for_recovery.rs
github-actions / clippy
unresolved import `crate::app`
error[E0432]: unresolved import `crate::app`
--> boards/recovery/src/state_machine/states/wait_for_recovery.rs:2:12
|
2 | use crate::app::monotonics;
| ^^^ could not find `app` in the crate root
Check failure on line 2 in boards/recovery/src/state_machine/states/terminal_descent.rs
github-actions / clippy
unresolved import `crate::app`
error[E0432]: unresolved import `crate::app`
--> boards/recovery/src/state_machine/states/terminal_descent.rs:2:12
|
2 | use crate::app::fire_main;
| ^^^ could not find `app` in the crate root
Check failure on line 2 in boards/recovery/src/state_machine/states/descent.rs
github-actions / clippy
unresolved import `crate::app`
error[E0432]: unresolved import `crate::app`
--> boards/recovery/src/state_machine/states/descent.rs:2:12
|
2 | use crate::app::fire_drogue;
| ^^^ could not find `app` in the crate root
Check failure on line 1 in boards/recovery/src/state_machine/states/ascent.rs
github-actions / clippy
unresolved import `crate::app`
error[E0432]: unresolved import `crate::app`
--> boards/recovery/src/state_machine/states/ascent.rs:1:12
|
1 | use crate::app::monotonics;
| ^^^ could not find `app` in the crate root
Check failure on line 9 in boards/recovery/src/data_manager.rs
github-actions / clippy
unresolved import `crate::app`
error[E0432]: unresolved import `crate::app`
--> boards/recovery/src/data_manager.rs:9:12
|
9 | use crate::app::recovery_timer_start;
| ^^^ could not find `app` in the crate root