Skip to content

Commit 53b811e

Browse files
committed
Placate the style gods
1 parent e5b8ede commit 53b811e

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

libc-test/build.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,11 +3399,13 @@ fn test_linux(target: &str) {
33993399
"priority_t" if musl => true,
34003400
"name_t" if musl => true,
34013401

3402-
t => if musl {
3403-
// LFS64 types have been removed in musl 1.2.4+
3404-
t.ends_with("64") || t.ends_with("64_t")
3405-
} else {
3406-
false
3402+
t => {
3403+
if musl {
3404+
// LFS64 types have been removed in musl 1.2.4+
3405+
t.ends_with("64") || t.ends_with("64_t")
3406+
} else {
3407+
false
3408+
}
34073409
}
34083410
}
34093411
});

src/unix/linux_like/linux/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4858,7 +4858,12 @@ extern "C" {
48584858
cfg_if! {
48594859
if #[cfg(not(target_env = "musl"))] {
48604860
extern "C" {
4861-
pub fn fallocate64(fd: ::c_int, mode: ::c_int, offset: ::off64_t, len: ::off64_t) -> ::c_int;
4861+
pub fn fallocate64(
4862+
fd: ::c_int,
4863+
mode: ::c_int,
4864+
offset: ::off64_t,
4865+
len: ::off64_t
4866+
) -> ::c_int;
48624867
pub fn fgetpos64(stream: *mut ::FILE, ptr: *mut fpos64_t) -> ::c_int;
48634868
pub fn fopen64(filename: *const c_char, mode: *const c_char) -> *mut ::FILE;
48644869
pub fn freopen64(

src/unix/linux_like/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,12 @@ cfg_if! {
18171817
len: ::off64_t,
18181818
advise: ::c_int,
18191819
) -> ::c_int;
1820-
pub fn pread64(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off64_t) -> ::ssize_t;
1820+
pub fn pread64(
1821+
fd: ::c_int,
1822+
buf: *mut ::c_void,
1823+
count: ::size_t,
1824+
offset: off64_t
1825+
) -> ::ssize_t;
18211826
pub fn pwrite64(
18221827
fd: ::c_int,
18231828
buf: *const ::c_void,

0 commit comments

Comments
 (0)