Skip to content

Commit 6d261af

Browse files
committed
rust: turn off unsafe_op_in_unsafe_fn warning in bindgen
Currently bindgen does not provide a way to specify which unsafe style is used. Signed-off-by: Gary Guo <[email protected]>
1 parent 1f1721b commit 6d261af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/kernel/bindings.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
non_camel_case_types,
1010
non_upper_case_globals,
1111
non_snake_case,
12-
improper_ctypes
12+
improper_ctypes,
13+
unsafe_op_in_unsafe_fn
1314
)]
1415
mod bindings_raw {
1516
use crate::c_types;

0 commit comments

Comments
 (0)