Skip to content

Commit 2d4dde7

Browse files
authored
Merge pull request #969 from thvdveld/fix-cfgs
Fix target-arch names and remove unknonwn fuzzing cfg warning
2 parents 8be46b9 + 86e56ad commit 2d4dde7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ license = "0BSD"
1616
# ensure that the correct features are enabled.
1717
autoexamples = false
1818

19+
[lints.rust]
20+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
21+
1922
[dependencies]
2023
managed = { version = "0.8", default-features = false, features = ["map"] }
2124
byteorder = { version = "1.0", default-features = false }

src/phy/sys/linux.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ pub const ETH_P_IEEE802154: libc::c_short = 0x00F6;
99
// https://github.com/golang/sys/blob/master/unix/zerrors_linux_<arch>.go
1010
pub const TUNSETIFF: libc::c_ulong = if cfg!(any(
1111
target_arch = "mips",
12+
all(target_arch = "mips", target_endian = "little"),
1213
target_arch = "mips64",
13-
target_arch = "mips64el",
14-
target_arch = "mipsel",
14+
all(target_arch = "mips64", target_endian = "little"),
1515
target_arch = "powerpc",
1616
target_arch = "powerpc64",
17-
target_arch = "powerpc64le",
17+
all(target_arch = "powerpc64", target_endian = "little"),
1818
target_arch = "sparc64"
1919
)) {
2020
0x800454CA

0 commit comments

Comments
 (0)