Skip to content

Commit f13358a

Browse files
committed
zephyr-sys: Disable clippy warnings for bindgen
As we don't have control over the specifics of the bindgen generated code, disable a handful of clippy warnings that it flags. Signed-off-by: David Brown <[email protected]>
1 parent 2ed3a52 commit f13358a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

zephyr-sys/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
#![allow(improper_ctypes)]
1717
#![allow(rustdoc::broken_intra_doc_links)]
1818
#![allow(rustdoc::bare_urls)]
19-
19+
// Disable various clippy warnings as they will not be fixable in the bindgen generated code.
20+
#![allow(clippy::missing_safety_doc)]
21+
#![allow(clippy::transmute_int_to_bool)]
22+
#![allow(clippy::useless_transmute)]
23+
#![allow(clippy::len_without_is_empty)]
2024
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
2125

2226
// We have directed bindgen to not generate copy for any times. It unfortunately doesn't have an

0 commit comments

Comments
 (0)