Skip to content

Commit ab55aed

Browse files
committed
Auto merge of #3516 - JohnTitor:fix-wasi-struct, r=JohnTitor
Allow dead_code on `clockid_t` Fixes CI
2 parents e673aaa + 38c9d43 commit ab55aed

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/psp.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,15 +1382,18 @@ s_paren! {
13821382
pub struct SceUid(pub i32);
13831383

13841384
#[repr(transparent)]
1385+
#[allow(dead_code)]
13851386
pub struct SceMpeg(*mut *mut c_void);
13861387

13871388
#[repr(transparent)]
1389+
#[allow(dead_code)]
13881390
pub struct SceMpegStream(*mut c_void);
13891391

13901392
#[repr(transparent)]
13911393
pub struct Mp3Handle(pub i32);
13921394

13931395
#[repr(transparent)]
1396+
#[allow(dead_code)]
13941397
pub struct RegHandle(u32);
13951398
}
13961399

src/wasi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ s_paren! {
6565
// in wasi-libc clockid_t is const struct __clockid* (where __clockid is an opaque struct),
6666
// but that's an implementation detail that we don't want to have to deal with
6767
#[repr(transparent)]
68+
#[allow(dead_code)]
6869
pub struct clockid_t(*const u8);
6970
}
7071

0 commit comments

Comments
 (0)