Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 3fb6b05

Browse files
committed
cargo fmt + remove unused features
1 parent 8950ddf commit 3fb6b05

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ fn main() {
5757
.output()
5858
.unwrap()
5959
.stdout,
60-
).unwrap();
60+
)
61+
.unwrap();
6162

6263
for arg in shlex::split(&output).unwrap() {
6364
builder = builder.clang_arg(arg.to_string());

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#![no_std]
2-
#![feature(alloc, allocator_api, const_fn, lang_items, panic_handler, alloc_error_handler)]
2+
#![feature(
3+
allocator_api,
4+
const_fn,
5+
lang_items,
6+
alloc_error_handler
7+
)]
38

49
#[macro_use]
510
extern crate alloc;

src/sysctl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ impl<T: SysctlStorage> Sysctl<T> {
127127
extra2: ptr::null_mut(),
128128
},
129129
unsafe { mem::zeroed() },
130-
].into_boxed_slice();
130+
]
131+
.into_boxed_slice();
131132

132133
let result =
133134
unsafe { bindings::register_sysctl(path.as_ptr() as *const i8, table.as_mut_ptr()) };

0 commit comments

Comments
 (0)