Documentation for MAV_CMD variants #1026
test.yml
on: pull_request
Matrix: internal-tests
Matrix: msrv
docs
1m 40s
Matrix: build
test-embedded-size
35s
Annotations
2 warnings
|
called `unwrap` on `self.default` after checking its variant with `is_some`:
mavlink-bindgen/src/parser.rs#L777
warning: called `unwrap` on `self.default` after checking its variant with `is_some`
--> mavlink-bindgen/src/parser.rs:777:42
|
776 | if self.reserved && self.default.is_some() {
| ---------------------- the check is happening here
777 | format!("Reserved (use {})", self.default.unwrap())
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: try using `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
|
|
called `unwrap` on `enum_entry.value` after checking its variant with `is_none`:
mavlink-bindgen/src/parser.rs#L578
warning: called `unwrap` on `enum_entry.value` after checking its variant with `is_none`
--> mavlink-bindgen/src/parser.rs:578:37
|
574 | if enum_entry.value.is_none() {
| ----------------------------- help: try: `if let Some(<item>) = enum_entry.value`
...
578 | let tmp_value = enum_entry.value.unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
= note: `#[warn(clippy::unnecessary_unwrap)]` on by default
|