Skip to content

Commit 128c36d

Browse files
committed
Formatting
1 parent d651779 commit 128c36d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/unix/solarish/mod.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,13 @@ s_no_extra_traits! {
484484
d_resv: [::c_int; 5], /* Check out /usr/include/sys/door.h */
485485
}
486486

487+
#[derive(Debug)]
487488
pub struct door_desc_t {
488489
pub d_attributes: door_attr_t,
489490
pub d_data: door_desc_t__d_data,
490491
}
491492

493+
#[derive(Debug)]
492494
pub struct door_arg_t {
493495
pub data_ptr: *const ::c_char,
494496
pub data_size: ::size_t,
@@ -561,8 +563,12 @@ cfg_if! {
561563
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
562564
unsafe {
563565
match self {
564-
Self { d_desc } => f.debug_struct("door_desc_t__d_data").field("d_desc", &self.d_desc).finish(),
565-
Self { d_resv } => f.debug_struct("door_desc_t__d_data").field("d_resv", &self.d_resv).finish(),
566+
Self { d_desc } => f.debug_struct("door_desc_t__d_data")
567+
.field("d_desc", &self.d_desc)
568+
.finish(),
569+
Self { d_resv } => f.debug_struct("door_desc_t__d_data")
570+
.field("d_resv", &self.d_resv)
571+
.finish(),
566572
}
567573
}
568574
}

0 commit comments

Comments
 (0)