Skip to content

Commit 96b7867

Browse files
committed
fmt: Add spacing between structs
1 parent a5b9638 commit 96b7867

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/unix/redox/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,42 +275,52 @@ s! {
275275
pub struct pthread_attr_t {
276276
bytes: [u8; _PTHREAD_ATTR_SIZE],
277277
}
278+
278279
#[repr(align(4))]
279280
pub struct pthread_barrier_t {
280281
bytes: [u8; _PTHREAD_BARRIER_SIZE],
281282
}
283+
282284
#[repr(align(4))]
283285
pub struct pthread_barrierattr_t {
284286
bytes: [u8; _PTHREAD_BARRIERATTR_SIZE],
285287
}
288+
286289
#[repr(align(4))]
287290
pub struct pthread_mutex_t {
288291
bytes: [u8; _PTHREAD_MUTEX_SIZE],
289292
}
293+
290294
#[repr(align(4))]
291295
pub struct pthread_rwlock_t {
292296
bytes: [u8; _PTHREAD_RWLOCK_SIZE],
293297
}
298+
294299
#[repr(align(4))]
295300
pub struct pthread_mutexattr_t {
296301
bytes: [u8; _PTHREAD_MUTEXATTR_SIZE],
297302
}
303+
298304
#[repr(align(1))]
299305
pub struct pthread_rwlockattr_t {
300306
bytes: [u8; _PTHREAD_RWLOCKATTR_SIZE],
301307
}
308+
302309
#[repr(align(4))]
303310
pub struct pthread_cond_t {
304311
bytes: [u8; _PTHREAD_COND_SIZE],
305312
}
313+
306314
#[repr(align(4))]
307315
pub struct pthread_condattr_t {
308316
bytes: [u8; _PTHREAD_CONDATTR_SIZE],
309317
}
318+
310319
#[repr(align(4))]
311320
pub struct pthread_once_t {
312321
bytes: [u8; _PTHREAD_ONCE_SIZE],
313322
}
323+
314324
#[repr(align(4))]
315325
pub struct pthread_spinlock_t {
316326
bytes: [u8; _PTHREAD_SPINLOCK_SIZE],
@@ -335,10 +345,12 @@ s! {
335345
_signum: c_uint,
336346
pub uc_mcontext: mcontext_t,
337347
}
348+
338349
#[cfg(target_arch = "x86")]
339350
pub struct mcontext {
340351
_opaque: [c_uchar; 512],
341352
}
353+
342354
#[cfg(target_arch = "x86_64")]
343355
pub struct mcontext {
344356
pub ymm_upper: [[c_ulong; 2]; 16],
@@ -362,10 +374,12 @@ s! {
362374
pub rip: c_ulong,
363375
pub rsp: c_ulong,
364376
}
377+
365378
#[cfg(target_arch = "aarch64")]
366379
pub struct mcontext {
367380
_opaque: [c_uchar; 272],
368381
}
382+
369383
#[cfg(target_arch = "riscv64")]
370384
pub struct mcontext {
371385
_opaque: [c_uchar; 520],

0 commit comments

Comments
 (0)