Skip to content

Add assert to check payload length during codegen #823

Add assert to check payload length during codegen

Add assert to check payload length during codegen #823

Triggered via pull request August 22, 2025 11:48
Status Failure
Total duration 22m 6s
Artifacts

test.yml

on: pull_request
Matrix: internal-tests
Matrix: msrv
test-embedded-size
0s
test-embedded-size
Fit to window
Zoom out
Zoom in

Annotations

1 error and 4 warnings
formatting
Process completed with exit code 1.
this looks like an `else if` but the `else` is missing: target/debug/build/mavlink-67aa21e354663303/out/ardupilotmega.rs#L1
warning: this looks like an `else if` but the `else` is missing --> /home/runner/work/rust-mavlink/rust-mavlink/target/debug/build/mavlink-67aa21e354663303/out/ardupilotmega.rs:1:642583 | 1 | ...es, but got {})" , Self :: ENCODED_LEN , __tmp . remaining () ,) } if matches ! (version , MavlinkVersion :: V2) { let len = __tmp . l... | ^ | = note: to remove this lint, add the missing `else` or add a new line before the second `if` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_else
this looks like an `else if` but the `else` is missing: target/debug/build/mavlink-67aa21e354663303/out/ardupilotmega.rs#L1
warning: this looks like an `else if` but the `else` is missing --> /home/runner/work/rust-mavlink/rust-mavlink/target/debug/build/mavlink-67aa21e354663303/out/ardupilotmega.rs:1:198112 | 1 | ...es, but got {})" , Self :: ENCODED_LEN , __tmp . remaining () ,) } if matches ! (version , MavlinkVersion :: V2) { let len = __tmp . l... | ^ | = note: to remove this lint, add the missing `else` or add a new line before the second `if` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_else = note: `#[warn(clippy::possible_missing_else)]` on by default
the borrowed expression implements the required traits: mavlink-bindgen/src/lib.rs#L101
warning: the borrowed expression implements the required traits --> mavlink-bindgen/src/lib.rs:101:67 | 101 | bindings.push(generate_single_file(&entry.path(), &destination_dir)?); | ^^^^^^^^^^^^^^^^ help: change this to: `destination_dir` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: mavlink-bindgen/src/lib.rs#L101
warning: the borrowed expression implements the required traits --> mavlink-bindgen/src/lib.rs:101:52 | 101 | bindings.push(generate_single_file(&entry.path(), &destination_dir)?); | ^^^^^^^^^^^^^ help: change this to: `entry.path()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default