Skip to content

Commit

Permalink
Silence some unused code warnings on Redox
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Sep 15, 2021
1 parent 6c261dc commit 80f0d40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ impl<'a> DerefMut for MaybeUninitSlice<'a> {
#[derive(Debug, Clone)]
pub struct TcpKeepalive {
time: Option<Duration>,
#[cfg_attr(target_os = "redox", allow(dead_code))]
interval: Option<Duration>,
#[cfg_attr(target_os = "redox", allow(dead_code))]
retries: Option<u32>,
}

Expand Down

0 comments on commit 80f0d40

Please sign in to comment.