added stubs #72
Annotations
13 errors and 6 warnings
methods `write` and `read` are never used:
src/utils/ring_buf.rs#L9
error: methods `write` and `read` are never used
--> src/utils/ring_buf.rs:9:12
|
8 | impl<const C: usize> RingBuffer<C> {
| ---------------------------------- methods in this implementation
9 | pub fn write(&mut self, data: &[u8]) {
| ^^^^^
...
35 | pub fn read(&mut self) -> Vec<u8> {
| ^^^^
|
fields `buf`, `idx`, and `len` are never read:
src/utils/ring_buf.rs#L3
error: fields `buf`, `idx`, and `len` are never read
--> src/utils/ring_buf.rs:3:5
|
2 | pub struct RingBuffer<const C: usize> {
| ---------- fields in this struct
3 | buf: Vec<u8>,
| ^^^
4 | idx: usize,
| ^^^
5 | len: usize,
| ^^^
|
= note: `RingBuffer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
variants `NotStarted`, `AlreadyRunning`, and `InternalError` are never constructed:
src/hal/stub/serial.rs#L36
error: variants `NotStarted`, `AlreadyRunning`, and `InternalError` are never constructed
--> src/hal/stub/serial.rs:36:5
|
35 | pub enum SerialError {
| ----------- variants in this enum
36 | NotStarted,
| ^^^^^^^^^^
37 | AlreadyRunning,
| ^^^^^^^^^^^^^^
38 | InternalError(String),
| ^^^^^^^^^^^^^
|
= note: `SerialError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
method `to_inverse_bitfield` is never used:
src/hal.rs#L82
error: method `to_inverse_bitfield` is never used
--> src/hal.rs:82:12
|
77 | impl NodeId {
| ----------- method in this implementation
...
82 | pub fn to_inverse_bitfield(self) -> u8 {
| ^^^^^^^^^^^^^^^^^^^
|
variants `NoMsdDevices` and `NoDriver` are never constructed:
src/firmware_update.rs#L82
error: variants `NoMsdDevices` and `NoDriver` are never constructed
--> src/firmware_update.rs:82:5
|
78 | pub enum FwUpdateError {
| ------------- variants in this enum
...
82 | NoMsdDevices,
| ^^^^^^^^^^^^
...
94 | NoDriver(rusb::Device<GlobalContext>),
| ^^^^^^^^
|
= note: `FwUpdateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
|
unused variable: `filter`:
src/hal/stub/usbboot.rs#L20
error: unused variable: `filter`
--> src/hal/stub/usbboot.rs:20:5
|
20 | filter: I,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter`
|
unused variable: `device`:
src/firmware_update.rs#L63
error: unused variable: `device`
--> src/firmware_update.rs:63:5
|
63 | device: &rusb::Device<GlobalContext>,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device`
|
unused variable: `allowed_vendors`:
src/hal/stub/usbboot.rs#L39
error: unused variable: `allowed_vendors`
--> src/hal/stub/usbboot.rs:39:5
|
39 | allowed_vendors: I,
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allowed_vendors`
|
unused variable: `on`:
src/hal/stub/power_controller.rs#L42
error: unused variable: `on`
--> src/hal/stub/power_controller.rs:42:35
|
42 | pub async fn power_led(&self, on: bool) -> std::io::Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_on`
|
= note: `-D unused-variables` implied by `-D warnings`
|
unused import: `time::Duration`:
src/hal/stub/usbboot.rs#L17
error: unused import: `time::Duration`
--> src/hal/stub/usbboot.rs:17:26
|
17 | use std::{path::PathBuf, time::Duration};
| ^^^^^^^^^^^^^^
|
unused import: `UsbContext`:
src/hal/stub/usbboot.rs#L16
error: unused import: `UsbContext`
--> src/hal/stub/usbboot.rs:16:35
|
16 | use rusb::{Device, GlobalContext, UsbContext};
| ^^^^^^^^^^
|
unused import: `Context`:
src/hal/stub/usbboot.rs#L15
error: unused import: `Context`
--> src/hal/stub/usbboot.rs:15:14
|
15 | use anyhow::{Context, Result};
| ^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
|
cargo-clippy
Clippy had exited with the 101 exit code
|
cargo-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
cargo-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
cargo-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
cargo-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
cargo-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
cargo-clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|