Skip to content

Commit 936fab0

Browse files
committed
style fixes to satisfy new rustfmt
1 parent cd5c1e7 commit 936fab0

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

libc-test/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,7 @@ fn test_linux(target: &str) {
26632663
// support, we except them from the tests here.
26642664
// See https://github.com/rust-lang/libc/pull/2019#issuecomment-754351482
26652665
"EPOLLEXCLUSIVE" | "EPOLLWAKEUP" if uclibc => true,
2666-
2666+
26672667
// FIXME: Requires recent kernel headers (5.8):
26682668
"STATX_MNT_ID" => true,
26692669

src/unix/linux_like/linux/uclibc/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ pub const LC_ALL: ::c_int = 6;
147147
// end different section
148148

149149
// MS_ flags for mount(2)
150-
pub const MS_RMT_MASK: ::c_ulong = ::MS_RDONLY|::MS_SYNCHRONOUS|
151-
::MS_MANDLOCK|::MS_I_VERSION;
150+
pub const MS_RMT_MASK: ::c_ulong =
151+
::MS_RDONLY | ::MS_SYNCHRONOUS | ::MS_MANDLOCK | ::MS_I_VERSION;
152152

153153
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
154154

src/unix/mod.rs

+12-6
Original file line numberDiff line numberDiff line change
@@ -623,18 +623,24 @@ extern "C" {
623623
...
624624
) -> ::c_int;
625625
pub fn sprintf(s: *mut ::c_char, format: *const ::c_char, ...) -> ::c_int;
626-
#[cfg_attr(all(target_os = "linux", not(target_env = "uclibc")),
627-
link_name = "__isoc99_fscanf")]
626+
#[cfg_attr(
627+
all(target_os = "linux", not(target_env = "uclibc")),
628+
link_name = "__isoc99_fscanf"
629+
)]
628630
pub fn fscanf(
629631
stream: *mut ::FILE,
630632
format: *const ::c_char,
631633
...
632634
) -> ::c_int;
633-
#[cfg_attr(all(target_os = "linux", not(target_env = "uclibc")),
634-
link_name = "__isoc99_scanf")]
635+
#[cfg_attr(
636+
all(target_os = "linux", not(target_env = "uclibc")),
637+
link_name = "__isoc99_scanf"
638+
)]
635639
pub fn scanf(format: *const ::c_char, ...) -> ::c_int;
636-
#[cfg_attr(all(target_os = "linux", not(target_env = "uclibc")),
637-
link_name = "__isoc99_sscanf")]
640+
#[cfg_attr(
641+
all(target_os = "linux", not(target_env = "uclibc")),
642+
link_name = "__isoc99_sscanf"
643+
)]
638644
pub fn sscanf(s: *const ::c_char, format: *const ::c_char, ...)
639645
-> ::c_int;
640646
pub fn getchar_unlocked() -> ::c_int;

0 commit comments

Comments
 (0)