ci(cargo-sort): check formatting and item order of Cargo.toml files #389
Triggered via pull request
February 23, 2024 16:22
Status
Cancelled
Total duration
2m 30s
Artifacts
–
main.yml
on: pull_request
Matrix: build
Final Results
0s
Annotations
18 errors and 5 warnings
cargo-sort
Process completed with exit code 1.
|
build (6/10)
The run was canceled by @ROMemories.
|
build (6/10)
The operation was canceled.
|
build (4/10)
The run was canceled by @ROMemories.
|
build (4/10)
The operation was canceled.
|
build (3/10)
The run was canceled by @ROMemories.
|
build (3/10)
The operation was canceled.
|
build (8/10)
The run was canceled by @ROMemories.
|
build (8/10)
The operation was canceled.
|
build (7/10)
The run was canceled by @ROMemories.
|
build (7/10)
The operation was canceled.
|
build (10/10)
The run was canceled by @ROMemories.
|
build (10/10)
The operation was canceled.
|
build (2/10)
The run was canceled by @ROMemories.
|
build (2/10)
The operation was canceled.
|
build (9/10)
The run was canceled by @ROMemories.
|
build (9/10)
The operation was canceled.
|
Final Results
Process completed with exit code 1.
|
function `startup` is never used:
src/riot-rs-rt/src/lib.rs#L65
warning: function `startup` is never used
--> src/riot-rs-rt/src/lib.rs:65:4
|
65 | fn startup() -> ! {
| ^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
function `init` is never used:
src/riot-rs-rt/src/lib.rs#L33
warning: function `init` is never used
--> src/riot-rs-rt/src/lib.rs:33:20
|
33 | pub fn init() {}
| ^^^^
|
this returns a `Result<_, ()>`:
src/riot-rs-rt/src/lib.rs#L34
warning: this returns a `Result<_, ()>`
--> src/riot-rs-rt/src/lib.rs:34:13
|
34 | 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#L89
warning: empty `loop {}` wastes CPU cycles
--> src/riot-rs-rt/src/lib.rs:89:9
|
89 | 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#L39
warning: empty `loop {}` wastes CPU cycles
--> src/riot-rs-rt/src/debug.rs:39:9
|
39 | 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
|