Skip to content

Commit ef93ede

Browse files
committed
Fix warnings
1 parent a5f1a29 commit ef93ede

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/lib.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,19 @@ impl<'a> DerefMut for MaybeUninitSlice<'a> {
329329
pub struct TcpKeepalive {
330330
#[cfg_attr(target_os = "openbsd", allow(dead_code))]
331331
time: Option<Duration>,
332-
#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "solaris")))]
332+
#[cfg(not(any(
333+
target_os = "openbsd",
334+
target_os = "redox",
335+
target_os = "solaris",
336+
target_os = "nto",
337+
)))]
333338
interval: Option<Duration>,
334339
#[cfg(not(any(
335340
target_os = "openbsd",
336341
target_os = "redox",
337342
target_os = "solaris",
338-
target_os = "windows"
343+
target_os = "windows",
344+
target_os = "nto",
339345
)))]
340346
retries: Option<u32>,
341347
}
@@ -345,13 +351,19 @@ impl TcpKeepalive {
345351
pub const fn new() -> TcpKeepalive {
346352
TcpKeepalive {
347353
time: None,
348-
#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "solaris")))]
354+
#[cfg(not(any(
355+
target_os = "openbsd",
356+
target_os = "redox",
357+
target_os = "solaris",
358+
target_os = "nto",
359+
)))]
349360
interval: None,
350361
#[cfg(not(any(
351362
target_os = "openbsd",
352363
target_os = "redox",
353364
target_os = "solaris",
354-
target_os = "windows"
365+
target_os = "windows",
366+
target_os = "nto",
355367
)))]
356368
retries: None,
357369
}

0 commit comments

Comments
 (0)