Improve final binary size #486
Annotations
3 errors and 2 warnings
target/debug/build/mavlink-3156a83dc3b809fb/out/ardupilotmega.rs#L1
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
--> /home/runner/work/rust-mavlink/rust-mavlink/target/debug/build/mavlink-3156a83dc3b809fb/out/ardupilotmega.rs:1:532411
|
1 | ...mut __tmp = BytesMut :: new (bytes) ; assert ! (__tmp . len () >= Self :: ENCODED_LEN , "buffer is too small (need {} bytes, but got {...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: because `Self :: ENCODED_LEN` is the minimum value for this type, this comparison is always true
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
= note: `#[deny(clippy::absurd_extreme_comparisons)]` on by default
|
target/debug/build/mavlink-3156a83dc3b809fb/out/ardupilotmega.rs#L1
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
--> /home/runner/work/rust-mavlink/rust-mavlink/target/debug/build/mavlink-3156a83dc3b809fb/out/ardupilotmega.rs:1:728940
|
1 | ...mut __tmp = BytesMut :: new (bytes) ; assert ! (__tmp . len () >= Self :: ENCODED_LEN , "buffer is too small (need {} bytes, but got {...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: because `Self :: ENCODED_LEN` is the minimum value for this type, this comparison is always true
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
|
|
mavlink-bindgen/src/lib.rs#L39
warning: the borrowed expression implements the required traits
--> mavlink-bindgen/src/lib.rs:39:33
|
39 | for entry_maybe in read_dir(&definitions_dir).map_err(|source| {
| ^^^^^^^^^^^^^^^^ help: change this to: `definitions_dir`
|
= 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
|
mavlink-bindgen/src/lib.rs#L67
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> mavlink-bindgen/src/lib.rs:67:26
|
67 | parser::generate(&definitions_dir, &definition_file, &mut outf)?;
| ^^^^^^^^^^^^^^^^ help: change this to: `definitions_dir`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
This job failed
Loading