Skip to content

Commit fa3fdaa

Browse files
committed
simplify epoll_event packed check
1 parent 9e26bd8 commit fa3fdaa

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/unix/linux_like/mod.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,7 @@ cfg_if! {
284284
}
285285

286286
s_no_extra_traits! {
287-
#[cfg_attr(
288-
any(
289-
all(
290-
target_arch = "x86",
291-
not(target_env = "musl"),
292-
not(target_os = "android")
293-
),
294-
target_arch = "x86_64"
295-
),
296-
repr(packed)
297-
)]
287+
#[cfg_attr(any(target_arch = "x86_64", target_env = "gnu"), repr(packed))]
298288
pub struct epoll_event {
299289
pub events: u32,
300290
pub data: epoll_data,

0 commit comments

Comments
 (0)