Skip to content

Commit 5d4300a

Browse files
add debug impl to posix_dent
1 parent a23fedf commit 5d4300a

File tree

1 file changed

+9
-7
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ cfg_if! {
3737
}
3838
}
3939

40-
#[repr(C)]
41-
pub struct posix_dent {
42-
pub d_ino: ino_t,
43-
pub d_off: off_t,
44-
pub d_reclen: c_ushort,
45-
pub d_type: c_uchar,
46-
pub d_name: *mut c_char,
40+
s_no_extra_traits! {
41+
#[repr(C)]
42+
pub struct posix_dent {
43+
pub d_ino: ino_t,
44+
pub d_off: off_t,
45+
pub d_reclen: c_ushort,
46+
pub d_type: c_uchar,
47+
pub d_name: *mut c_char,
48+
}
4749
}
4850

4951
impl siginfo_t {

0 commit comments

Comments
 (0)