Skip to content

Commit 5224332

Browse files
committed
Allow dead_code for NSOperatingSystemVersion
Issue can be followed at rust-lang/rust#56750.
1 parent 369ac9a commit 5224332

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/version.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ impl OsVersion {
176176
} else {
177177
// https://developer.apple.com/documentation/foundation/nsoperatingsystemversion?language=objc
178178
#[repr(C)]
179+
#[allow(dead_code)] // See https://github.com/rust-lang/rust/issues/56750
179180
struct NSOperatingSystemVersion {
180181
major: NSInteger,
181182
minor: NSInteger,

0 commit comments

Comments
 (0)