Skip to content

Commit 98000a2

Browse files
committed
zephyr-sys: Run cargo fmt
Format code with default rules. Provides a baseline for upcoming work to be able to require properly formatted code. Signed-off-by: David Brown <[email protected]>
1 parent 60cda22 commit 98000a2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

zephyr-sys/build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ fn main() -> Result<()> {
5555

5656
// Bindgen everything.
5757
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+
)
5965
.use_core()
6066
.clang_arg(&target_arg);
6167
let bindings = define_args(bindings, "-I", "INCLUDE_DIRS");

zephyr-sys/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
//! Zephyr.
88
99
#![no_std]
10-
1110
// Allow rust naming convention violations.
1211
#![allow(non_snake_case)]
1312
#![allow(non_upper_case_globals)]
1413
#![allow(non_camel_case_types)]
15-
1614
// Zephyr makes use of zero-sized structs, which Rustc considers invalid. Suppress this warning.
1715
// Note, however, that this suppresses any warnings in the bindings about improper C types.
1816
#![allow(improper_ctypes)]
19-
2017
#![allow(rustdoc::broken_intra_doc_links)]
2118
#![allow(rustdoc::bare_urls)]
2219

0 commit comments

Comments
 (0)