Skip to content

mavlink-core: MAVLinkV1MessageRaw::header should not require mut #610

mavlink-core: MAVLinkV1MessageRaw::header should not require mut

mavlink-core: MAVLinkV1MessageRaw::header should not require mut #610

Triggered via push November 28, 2024 15:30
Status Success
Total duration 22m 41s
Artifacts

test.yml

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

Annotations

4 warnings
first doc comment paragraph is too long: mavlink-bindgen/src/parser.rs#L1367
warning: first doc comment paragraph is too long --> mavlink-bindgen/src/parser.rs:1367:1 | 1367 | / /// CRC operates over names of the message and names of its fields 1368 | | /// Hence we have to preserve the original uppercase names delimited with an underscore 1369 | | /// For field names, we replace "type" with "mavtype" to make it rust compatible (this is 1370 | | /// needed for generating sensible rust code), but for calculating crc function we have to 1371 | | /// use the original name "type" | |_ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph = note: `#[warn(clippy::too_long_first_doc_paragraph)]` on by default
unexpected `cfg` condition value: `storm32`: target/debug/build/mavlink-4107265b953b5b26/out/mod.rs#L1
warning: unexpected `cfg` condition value: `storm32` --> /home/runner/work/rust-mavlink/rust-mavlink/target/debug/build/mavlink-4107265b953b5b26/out/mod.rs:1:2548 | 1 | ...essary_cast)] # [allow (clippy :: bad_bit_mask)] # [cfg (feature = "storm32")] pub mod storm32 ; # [allow (non_camel_case_types)] # [a... | ^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `all`, `all-dialects`, `ardupilotmega`, `asluav`, `avssuas`, `common`, `cubepilot`, `default`, `development`, `direct-serial`, `embedded`, `embedded-hal-02`, `emit-description`, `emit-extensions`, `format-generated-code`, `icarous`, `matrixpilot`, `minimal`, `paparazzi`, `python_array_test`, `serde`, `signing`, `slugs`, `standard`, `std`, `tcp`, `test`, `tokio-1`, `ualberta`, `uavionix`, and `udp` = help: consider adding `storm32` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default
this looks like an `else if` but the `else` is missing: target/debug/build/mavlink-4107265b953b5b26/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-4107265b953b5b26/out/ardupilotmega.rs:1:417376 | 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#suspicious_else_formatting = note: `#[warn(clippy::suspicious_else_formatting)]` on by default
this looks like an `else if` but the `else` is missing: target/debug/build/mavlink-4107265b953b5b26/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-4107265b953b5b26/out/ardupilotmega.rs:1:652690 | 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#suspicious_else_formatting