File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,13 @@ fn main() -> Result<()> {
55
55
56
56
// Bindgen everything.
57
57
let bindings = Builder :: default ( )
58
- . header ( Path :: new ( "wrapper.h" ) . canonicalize ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) )
58
+ . header (
59
+ Path :: new ( "wrapper.h" )
60
+ . canonicalize ( )
61
+ . unwrap ( )
62
+ . to_str ( )
63
+ . unwrap ( ) ,
64
+ )
59
65
. use_core ( )
60
66
. clang_arg ( & target_arg) ;
61
67
let bindings = define_args ( bindings, "-I" , "INCLUDE_DIRS" ) ;
Original file line number Diff line number Diff line change 7
7
//! Zephyr.
8
8
9
9
#![ no_std]
10
-
11
10
// Allow rust naming convention violations.
12
11
#![ allow( non_snake_case) ]
13
12
#![ allow( non_upper_case_globals) ]
14
13
#![ allow( non_camel_case_types) ]
15
-
16
14
// Zephyr makes use of zero-sized structs, which Rustc considers invalid. Suppress this warning.
17
15
// Note, however, that this suppresses any warnings in the bindings about improper C types.
18
16
#![ allow( improper_ctypes) ]
19
-
20
17
#![ allow( rustdoc:: broken_intra_doc_links) ]
21
18
22
19
include ! ( concat!( env!( "OUT_DIR" ) , "/bindings.rs" ) ) ;
You can’t perform that action at this time.
0 commit comments