Skip to content

Commit 9d39310

Browse files
committed
Rustfmt
1 parent 60da93f commit 9d39310

File tree

19 files changed

+134
-100
lines changed

19 files changed

+134
-100
lines changed

src/psp.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,12 @@ pub type SceMpegRingbufferCb = ::Option<
8888
>;
8989

9090
pub type GuCallback = ::Option<extern "C" fn(id: i32, arg: *mut c_void)>;
91-
pub type GuSwapBuffersCallback = ::Option<extern "C" fn(
92-
display: *mut *mut c_void, render: *mut *mut c_void
93-
),
91+
pub type GuSwapBuffersCallback = ::Option<
92+
extern "C" fn(display: *mut *mut c_void, render: *mut *mut c_void),
9493
>;
9594

96-
pub type SceNetAdhocctlHandler = ::Option<unsafe extern "C" fn(
97-
flag: i32, error: i32, unknown: *mut c_void
98-
),
95+
pub type SceNetAdhocctlHandler = ::Option<
96+
unsafe extern "C" fn(flag: i32, error: i32, unknown: *mut c_void),
9997
>;
10098

10199
pub type AdhocMatchingCallback = ::Option<
@@ -2794,7 +2792,7 @@ extern "C" {
27942792
pub fn sceCtrlPeekLatch(latch_data: *mut SceCtrlLatch) -> i32;
27952793
pub fn sceCtrlReadLatch(latch_data: *mut SceCtrlLatch) -> i32;
27962794
pub fn sceCtrlSetIdleCancelThreshold(idlereset: i32, idleback: i32)
2797-
-> i32;
2795+
-> i32;
27982796
pub fn sceCtrlGetIdleCancelThreshold(
27992797
idlereset: *mut i32,
28002798
idleback: *mut i32,
@@ -3163,7 +3161,7 @@ extern "C" {
31633161
timeout: *mut u32,
31643162
) -> i32;
31653163
pub fn sceKernelPollMbx(mbx_id: SceUid, pmessage: *mut *mut c_void)
3166-
-> i32;
3164+
-> i32;
31673165
pub fn sceKernelCancelReceiveMbx(mbx_id: SceUid, num: *mut i32) -> i32;
31683166
pub fn sceKernelReferMbxStatus(
31693167
mbx_id: SceUid,
@@ -3321,7 +3319,7 @@ extern "C" {
33213319
timeout: *mut u32,
33223320
) -> i32;
33233321
pub fn sceKernelTryAllocateFpl(uid: SceUid, data: *mut *mut c_void)
3324-
-> i32;
3322+
-> i32;
33253323
pub fn sceKernelFreeFpl(uid: SceUid, data: *mut c_void) -> i32;
33263324
pub fn sceKernelCancelFpl(uid: SceUid, pnum: *mut i32) -> i32;
33273325
pub fn sceKernelReferFplStatus(
@@ -3574,10 +3572,12 @@ extern "C" {
35743572
num_years: u64,
35753573
) -> i32;
35763574
pub fn sceRtcSetTime_t(date: *mut ScePspDateTime, time: u32) -> i32;
3577-
pub fn sceRtcGetTime_t(date: *const ScePspDateTime, time: *mut u32) -> i32;
3575+
pub fn sceRtcGetTime_t(date: *const ScePspDateTime, time: *mut u32)
3576+
-> i32;
35783577
pub fn sceRtcSetTime64_t(date: *mut ScePspDateTime, time: u64) -> i32;
35793578
pub fn sceRtcGetTime64_t(
3580-
date: *const ScePspDateTime, time: *mut u64
3579+
date: *const ScePspDateTime,
3580+
time: *mut u64,
35813581
) -> i32;
35823582
pub fn sceRtcSetDosTime(date: *mut ScePspDateTime, dos_time: u32) -> i32;
35833583
pub fn sceRtcGetDosTime(date: *mut ScePspDateTime, dos_time: u32) -> i32;
@@ -3636,7 +3636,7 @@ extern "C" {
36363636
pub fn sceIoLseekAsync(fd: SceUid, offset: i64, whence: IoWhence) -> i32;
36373637
pub fn sceIoLseek32(fd: SceUid, offset: i32, whence: IoWhence) -> i32;
36383638
pub fn sceIoLseek32Async(fd: SceUid, offset: i32, whence: IoWhence)
3639-
-> i32;
3639+
-> i32;
36403640
pub fn sceIoRemove(file: *const u8) -> i32;
36413641
pub fn sceIoMkdir(dir: *const u8, mode: IoPermissions) -> i32;
36423642
pub fn sceIoRmdir(path: *const u8) -> i32;
@@ -4173,7 +4173,7 @@ extern "C" {
41734173
) -> i32;
41744174
pub fn sceRegGetKeysNum(dir_handle: RegHandle, num: *mut i32) -> i32;
41754175
pub fn sceRegGetKeys(dir_handle: RegHandle, buf: *mut u8, num: i32)
4176-
-> i32;
4176+
-> i32;
41774177
pub fn sceRegCreateKey(
41784178
dir_handle: RegHandle,
41794179
name: *const u8,
@@ -4315,7 +4315,7 @@ extern "C" {
43154315
) -> i32;
43164316
pub fn sceNetAdhocctlDelHandler(id: i32) -> i32;
43174317
pub fn sceNetAdhocctlGetNameByAddr(mac: *mut u8, nickname: *mut u8)
4318-
-> i32;
4318+
-> i32;
43194319
pub fn sceNetAdhocctlGetAddrByName(
43204320
nickname: *mut u8,
43214321
length: *mut i32,
@@ -4486,7 +4486,7 @@ extern "C" {
44864486
) -> i32;
44874487
pub fn sceNetAdhocMatchingGetPoolMaxAlloc() -> i32;
44884488
pub fn sceNetAdhocMatchingGetPoolStat(poolstat: *mut AdhocPoolStat)
4489-
-> i32;
4489+
-> i32;
44904490
}
44914491

44924492
extern "C" {
@@ -4625,7 +4625,7 @@ extern "C" {
46254625
content_length: *mut u64,
46264626
) -> i32;
46274627
pub fn sceHttpGetStatusCode(request_id: i32, status_code: *mut i32)
4628-
-> i32;
4628+
-> i32;
46294629
pub fn sceHttpSetResolveTimeOut(id: i32, timeout: u32) -> i32;
46304630
pub fn sceHttpSetResolveRetry(id: i32, count: i32) -> i32;
46314631
pub fn sceHttpSetConnectTimeOut(id: i32, timeout: u32) -> i32;

src/unix/bsd/mod.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ extern "C" {
634634

635635
#[cfg_attr(
636636
all(target_os = "macos", not(target_arch = "aarch64")),
637-
link_name = "glob$INODE64")
638-
]
637+
link_name = "glob$INODE64"
638+
)]
639639
#[cfg_attr(target_os = "netbsd", link_name = "__glob30")]
640640
#[cfg_attr(
641641
all(target_os = "freebsd", any(freebsd11, freebsd10)),
@@ -869,10 +869,7 @@ extern "C" {
869869
all(target_os = "macos", target_arch = "x86"),
870870
link_name = "getitimer$UNIX2003"
871871
)]
872-
pub fn getitimer(
873-
which: ::c_int,
874-
curr_value: *mut ::itimerval
875-
) -> ::c_int;
872+
pub fn getitimer(which: ::c_int, curr_value: *mut ::itimerval) -> ::c_int;
876873
#[cfg_attr(
877874
all(target_os = "macos", target_arch = "x86"),
878875
link_name = "setitimer$UNIX2003"

src/unix/linux_like/linux/gnu/b32/arm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub const MAP_NONBLOCK: ::c_int = 0x010000;
212212
pub const MAP_STACK: ::c_int = 0x020000;
213213
pub const MAP_HUGETLB: ::c_int = 0x040000;
214214
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
215-
pub const MAP_SYNC : ::c_int = 0x080000;
215+
pub const MAP_SYNC: ::c_int = 0x080000;
216216

217217
pub const SOL_SOCKET: ::c_int = 1;
218218

src/unix/linux_like/linux/gnu/b32/powerpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ pub const MAP_NONBLOCK: ::c_int = 0x010000;
213213
pub const MAP_STACK: ::c_int = 0x020000;
214214
pub const MAP_HUGETLB: ::c_int = 0x040000;
215215
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
216-
pub const MAP_SYNC : ::c_int = 0x080000;
216+
pub const MAP_SYNC: ::c_int = 0x080000;
217217

218218
pub const SOL_SOCKET: ::c_int = 1;
219219

src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ pub const MAP_EXECUTABLE: ::c_int = 4096;
417417
pub const MAP_POPULATE: ::c_int = 32768;
418418
pub const MAP_NONBLOCK: ::c_int = 65536;
419419
pub const MAP_STACK: ::c_int = 131072;
420-
pub const MAP_SYNC : ::c_int = 0x080000;
420+
pub const MAP_SYNC: ::c_int = 0x080000;
421421
pub const EDEADLOCK: ::c_int = 35;
422422
pub const EUCLEAN: ::c_int = 117;
423423
pub const ENOTNAM: ::c_int = 118;

src/unix/linux_like/linux/gnu/b32/sparc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
239239
pub const MAP_NONBLOCK: ::c_int = 0x010000;
240240
pub const MAP_STACK: ::c_int = 0x020000;
241241
pub const MAP_HUGETLB: ::c_int = 0x040000;
242-
pub const MAP_SYNC : ::c_int = 0x080000;
242+
pub const MAP_SYNC: ::c_int = 0x080000;
243243

244244
pub const EDEADLK: ::c_int = 78;
245245
pub const ENAMETOOLONG: ::c_int = 63;

src/unix/linux_like/linux/gnu/b32/x86/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ pub const MAP_NONBLOCK: ::c_int = 0x010000;
416416
pub const MAP_STACK: ::c_int = 0x020000;
417417
pub const MAP_HUGETLB: ::c_int = 0x040000;
418418
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
419-
pub const MAP_SYNC : ::c_int = 0x080000;
419+
pub const MAP_SYNC: ::c_int = 0x080000;
420420

421421
pub const EDEADLOCK: ::c_int = 35;
422422
pub const EUCLEAN: ::c_int = 117;

src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ pub const O_DIRECT: ::c_int = 0x20000;
552552

553553
pub const MAP_LOCKED: ::c_int = 0x00080;
554554
pub const MAP_NORESERVE: ::c_int = 0x00040;
555-
pub const MAP_SYNC : ::c_int = 0x080000;
555+
pub const MAP_SYNC: ::c_int = 0x080000;
556556

557557
pub const EDEADLOCK: ::c_int = 58;
558558
pub const EUCLEAN: ::c_int = 117;

src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ pub const MAP_EXECUTABLE: ::c_int = 4096;
463463
pub const MAP_POPULATE: ::c_int = 32768;
464464
pub const MAP_NONBLOCK: ::c_int = 65536;
465465
pub const MAP_STACK: ::c_int = 131072;
466-
pub const MAP_SYNC : ::c_int = 0x080000;
466+
pub const MAP_SYNC: ::c_int = 0x080000;
467467
pub const EDEADLOCK: ::c_int = 35;
468468
pub const EUCLEAN: ::c_int = 117;
469469
pub const ENOTNAM: ::c_int = 118;

src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
247247
pub const MAP_NONBLOCK: ::c_int = 0x010000;
248248
pub const MAP_STACK: ::c_int = 0x020000;
249249
pub const MAP_HUGETLB: ::c_int = 0x040000;
250-
pub const MAP_SYNC : ::c_int = 0x080000;
250+
pub const MAP_SYNC: ::c_int = 0x080000;
251251

252252
pub const EDEADLK: ::c_int = 78;
253253
pub const ENAMETOOLONG: ::c_int = 63;

0 commit comments

Comments
 (0)