Skip to content

Commit 9e0ade0

Browse files
committed
Allow dead_code for unused struct fields that are now causing a warning
1 parent faed8c4 commit 9e0ade0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shims/unix/linux/fd/epoll.rs

+2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ pub struct Epoll {
2121
/// <https://man7.org/linux/man-pages/man2/epoll_ctl.2.html>
2222
#[derive(Clone, Debug)]
2323
pub struct EpollEvent {
24+
#[allow(dead_code)]
2425
pub events: u32,
2526
/// `Scalar<Provenance>` is used to represent the
2627
/// `epoll_data` type union.
28+
#[allow(dead_code)]
2729
pub data: Scalar<Provenance>,
2830
}
2931

0 commit comments

Comments
 (0)