Skip to content

Commit 5a6ee62

Browse files
committed
Suppress time_t musl "deprecation"
See rust-lang/libc#1848 in which this type is changing from i32 to i64; the change is being announced via this deprecation. Signed-off-by: Tim Zhang <[email protected]>
1 parent 6f9886f commit 5a6ee62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ impl VsockStream {
395395
));
396396
}
397397

398+
// https://github.com/rust-lang/libc/issues/1848
399+
#[cfg_attr(target_env = "musl", allow(deprecated))]
398400
let secs = if dur.as_secs() > time_t::max_value() as u64 {
399401
time_t::max_value()
400402
} else {

0 commit comments

Comments
 (0)