Merge pull request #27 from namib-project/square-brackets #139
reviewdog [clippy (libcoap-sys)] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (8)
libcoap-sys/build.rs|100 col 9| warning: the borrowed expression implements the required traits
--> libcoap-sys/build.rs:100:9
|
100 | &Path::new(&esp_idf_buildroot).join("build"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: Path::new(&esp_idf_buildroot).join("build")
|
= 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
libcoap-sys/src/lib.rs|114 col 7| warning: unexpected cfg
condition name: inlined_coap_send_rst
--> libcoap-sys/src/lib.rs:114:7
|
114 | #[cfg(inlined_coap_send_rst)]
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: expected names are: clippy
, debug_assertions
, doc
, docsrs
, doctest
, feature
, miri
, overflow_checks
, panic
, proc_macro
, relocation_model
, rustfmt
, sanitize
, sanitizer_cfi_generalize_pointers
, sanitizer_cfi_normalize_integers
, target_abi
, target_arch
, target_endian
, target_env
, target_family
, target_feature
, target_has_atomic
, target_has_atomic_equal_alignment
, target_has_atomic_load_store
, target_os
, target_pointer_width
, target_thread_local
, target_vendor
, test
, ub_checks
, unix
, and windows
= help: consider using a Cargo feature instead
= help: or consider adding in Cargo.toml
the check-cfg
lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(inlined_coap_send_rst)'] }
= help: or consider adding println!("cargo::rustc-check-cfg=cfg(inlined_coap_send_rst)");
to the top of the build.rs
= 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
target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs|330 col 12| warning: struct coap_lg_xmit_t
is never constructed
--> /home/runner/work/libcoap-rs/libcoap-rs/target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs:330:12
|
330 | pub struct coap_lg_xmit_t {
| ^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs|335 col 12| warning: struct coap_lg_crcv_t
is never constructed
--> /home/runner/work/libcoap-rs/libcoap-rs/target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs:335:12
|
335 | pub struct coap_lg_crcv_t {
| ^^^^^^^^^^^^^^
target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs|340 col 12| warning: struct coap_lg_srcv_t
is never constructed
--> /home/runner/work/libcoap-rs/libcoap-rs/target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs:340:12
|
340 | pub struct coap_lg_srcv_t {
| ^^^^^^^^^^^^^^
target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs|355 col 12| warning: struct coap_packet_t
is never constructed
--> /home/runner/work/libcoap-rs/libcoap-rs/target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs:355:12
|
355 | pub struct coap_packet_t {
| ^^^^^^^^^^^^^
target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs|370 col 12| warning: struct coap_queue_t
is never constructed
--> /home/runner/work/libcoap-rs/libcoap-rs/target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs:370:12
|
370 | pub struct coap_queue_t {
| ^^^^^^^^^^^^
target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs|395 col 12| warning: struct coap_addr_hash_t
is never constructed
--> /home/runner/work/libcoap-rs/libcoap-rs/target/debug/build/libcoap-sys-3c79ca4108e28c39/out/bindings.rs:395:12
|
395 | pub struct coap_addr_hash_t {
| ^^^^^^^^^^^^^^^^