Skip to content

initial esp support #408

initial esp support

initial esp support #408

Triggered via pull request February 27, 2024 22:11
@kaspar030kaspar030
synchronize #121
esp
Status Failure
Total duration 4m 28s
Artifacts

main.yml

on: pull_request
Matrix: build
Final Results
2s
Final Results
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 5 warnings
no method named `must_spawn` found for struct `arch::executor::Spawner` in the current scope: src/riot-rs-embassy/src/lib.rs#L71
error[E0599]: no method named `must_spawn` found for struct `arch::executor::Spawner` in the current scope --> src/riot-rs-embassy/src/lib.rs:71:24 | 71 | EXECUTOR.spawner().must_spawn(init_task(p)); | ^^^^^^^^^^ | ::: src/riot-rs-embassy/src/arch/dummy.rs:35:5 | 35 | pub struct Spawner {} | ------------------ method `must_spawn` not found for this struct | help: there is a method `spawn` with a similar name | 71 | EXECUTOR.spawner().spawn(init_task(p)); | ~~~~~
mismatched types: src/riot-rs-embassy/src/lib.rs#L71
error[E0308]: mismatched types --> src/riot-rs-embassy/src/lib.rs:71:45 | 71 | EXECUTOR.spawner().must_spawn(init_task(p)); | --------- ^ expected `OptionalPeripherals`, found `Peripherals` | | | arguments to this function are incorrect | note: function defined here --> src/riot-rs-embassy/src/lib.rs:77:10 | 77 | async fn init_task(mut peripherals: arch::OptionalPeripherals) { | ^^^^^^^^^ -------------------------------------- help: call `Into::into` on this expression to convert `arch::Peripherals` into `arch::OptionalPeripherals` | 71 | EXECUTOR.spawner().must_spawn(init_task(p.into())); | +++++++
lint
Clippy has exited with exit code 101
build (1/10)
Process completed with exit code 1.
build (6/10)
Process completed with exit code 1.
build (9/10)
Process completed with exit code 1.
build (5/10)
Process completed with exit code 1.
build (10/10)
Process completed with exit code 1.
build (8/10)
Process completed with exit code 1.
build (7/10)
Process completed with exit code 1.
build (3/10)
Process completed with exit code 1.
build (2/10)
Process completed with exit code 1.
build (4/10)
Process completed with exit code 1.
Final Results
Process completed with exit code 1.
function `startup` is never used: src/riot-rs-rt/src/lib.rs#L69
warning: function `startup` is never used --> src/riot-rs-rt/src/lib.rs:69:4 | 69 | fn startup() -> ! { | ^^^^^^^ | = note: `#[warn(dead_code)]` on by default
function `init` is never used: src/riot-rs-rt/src/lib.rs#L37
warning: function `init` is never used --> src/riot-rs-rt/src/lib.rs:37:20 | 37 | pub fn init() {} | ^^^^
this returns a `Result<_, ()>`: src/riot-rs-rt/src/lib.rs#L38
warning: this returns a `Result<_, ()>` --> src/riot-rs-rt/src/lib.rs:38:13 | 38 | pub fn benchmark<F: Fn()>(_iterations: usize, _f: F) -> core::result::Result<usize, ()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: use a custom `Error` type instead = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err = note: `#[warn(clippy::result_unit_err)]` on by default
empty `loop {}` wastes CPU cycles: src/riot-rs-rt/src/lib.rs#L93
warning: empty `loop {}` wastes CPU cycles --> src/riot-rs-rt/src/lib.rs:93:9 | 93 | loop {} | ^^^^^^^ | = help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop
empty `loop {}` wastes CPU cycles: src/riot-rs-rt/src/debug.rs#L50
warning: empty `loop {}` wastes CPU cycles --> src/riot-rs-rt/src/debug.rs:50:9 | 50 | loop {} | ^^^^^^^ | = help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop = note: `#[warn(clippy::empty_loop)]` on by default