Skip to content

Commit 2830551

Browse files
committed
fixes test
1 parent 5148a0c commit 2830551

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/std/src/sys/pal/unix/thread.rs

+1
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ impl Thread {
363363
#[cfg(target_vendor = "apple")]
364364
pub fn sleep_until(deadline: crate::time::Instant) {
365365
use core::mem::MaybeUninit;
366+
366367
use super::time::Timespec;
367368

368369
let Timespec { tv_sec, tv_nsec } = deadline.into_inner().into_timespec();

library/std/tests/thread.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
#![feature(thread_sleep_until)]
12
use std::cell::{Cell, RefCell};
23
use std::sync::{Arc, Mutex};
34
use std::thread;
4-
use std::time::Duration;
5-
#[feature(thread_sleep_until)]
6-
use std::time::Instant;
5+
use std::time::{Duration, Instant};
76

87
#[test]
98
#[cfg_attr(any(target_os = "emscripten", target_os = "wasi"), ignore)] // no threads

0 commit comments

Comments
 (0)