Skip to content

Commit de907d6

Browse files
committed
another one from the ci mines
1 parent 5b54680 commit de907d6

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

tokio/src/runtime/tests/task.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use crate::runtime::task::{
2-
self, unowned, Id, JoinHandle, OwnedTasks, Schedule, Task, TaskHarnessScheduleHooks,
3-
};
1+
use crate::runtime::task::{self, unowned, Id, JoinHandle, OwnedTasks, Schedule, Task};
42
use crate::runtime::tests::NoopSchedule;
5-
3+
#[cfg(tokio_unstable)]
4+
use crate::runtime::{OptionalTaskHooksFactory, OptionalTaskHooksFactoryRef};
65
use std::collections::VecDeque;
76
use std::future::Future;
87
use std::sync::atomic::{AtomicBool, Ordering};
@@ -447,9 +446,13 @@ impl Schedule for Runtime {
447446
self.0.core.try_lock().unwrap().queue.push_back(task);
448447
}
449448

450-
fn hooks_factory_ref(&self) -> TaskHarnessScheduleHooks {
451-
TaskHarnessScheduleHooks {
452-
task_terminate_callback: None,
453-
}
449+
#[cfg(tokio_unstable)]
450+
fn hooks_factory(&self) -> OptionalTaskHooksFactory {
451+
None
452+
}
453+
454+
#[cfg(tokio_unstable)]
455+
fn hooks_factory_ref(&self) -> OptionalTaskHooksFactoryRef<'_> {
456+
None
454457
}
455458
}

0 commit comments

Comments
 (0)