build(profiles): make the dev
profile suitable for embedded
#2029
Annotations
1 error and 7 warnings
cargo-deny advisories
Process completed with exit code 1.
|
clippy:
src/riot-rs-embassy/src/gpio.rs#L218
warning: unused macro definition: `impl_from_level`
--> src/riot-rs-embassy/src/gpio.rs:218:14
|
218 | macro_rules! impl_from_level {
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_macros)]` on by default
|
clippy:
src/riot-rs-embassy/src/gpio.rs#L230
warning: unused import: `impl_from_level`
--> src/riot-rs-embassy/src/gpio.rs:230:16
|
230 | pub(crate) use impl_from_level;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy:
src/riot-rs-embassy/src/gpio.rs#L578
warning: unreachable definition
--> src/riot-rs-embassy/src/gpio.rs:578:17
|
576 | let speed = <ArchSpeed as FromSpeed>::from(self.speed);
| ------------------------------------------ any code following this expression is unreachable
577 |
578 | let output =
| ^^^^^^ unreachable definition
|
note: this expression has type `arch::gpio::output::Speed`, which is uninhabited
--> src/riot-rs-embassy/src/gpio.rs:576:25
|
576 | let speed = <ArchSpeed as FromSpeed>::from(self.speed);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: `#[warn(unreachable_code)]` on by default
|
clippy:
src/riot-rs-embassy/src/gpio.rs#L576
warning: unreachable definition
--> src/riot-rs-embassy/src/gpio.rs:576:17
|
574 | <ArchDriveStrength as FromDriveStrength>::from(self.drive_strength);
| ------------------------------------------------------------------- any code following this expression is unreachable
575 | // TODO: should we move this into `output::new()`s?
576 | let speed = <ArchSpeed as FromSpeed>::from(self.speed);
| ^^^^^ unreachable definition
|
note: this expression has type `arch::gpio::output::DriveStrength`, which is uninhabited
--> src/riot-rs-embassy/src/gpio.rs:574:17
|
574 | <ArchDriveStrength as FromDriveStrength>::from(self.drive_strength);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy:
src/riot-rs-embassy/src/gpio.rs#L573
warning: unused variable: `drive_strength`
--> src/riot-rs-embassy/src/gpio.rs:573:17
|
573 | let drive_strength =
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drive_strength`
|
= note: `#[warn(unused_variables)]` on by default
|
clippy:
src/riot-rs-embassy/src/gpio.rs#L576
warning: unused variable: `speed`
--> src/riot-rs-embassy/src/gpio.rs:576:17
|
576 | let speed = <ArchSpeed as FromSpeed>::from(self.speed);
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed`
|
clippy:
src/riot-rs-embassy/src/gpio.rs#L261
warning: `assert!(false, ..)` should probably be replaced
--> src/riot-rs-embassy/src/gpio.rs:261:17
|
261 | / assert!(
262 | | arch::gpio::input::SCHMITT_TRIGGER_CONFIGURABLE,
263 | | "This architecture does not support configuring Schmitt triggers on GPIO inputs."
264 | | );
| |_________________^
|
= help: use `panic!(..)` or `unreachable!(..)`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
= note: `#[warn(clippy::assertions_on_constants)]` on by default
|
Loading