chore: backport CI fixes

This commit is contained in:
Carl Lerche
2025-04-02 14:34:28 -07:00
parent 4b174ce2c9
commit 7b6ccb515f
6 changed files with 49 additions and 26 deletions
+3 -1
View File
@@ -171,6 +171,8 @@ features = ["full", "test-util"]
allowed_external_types = [
"bytes::buf::buf_impl::Buf",
"bytes::buf::buf_mut::BufMut",
"tokio_macros::*",
]
[lints]
workspace = true
-13
View File
@@ -1,5 +1,4 @@
use crate::runtime::scheduler::multi_thread::{queue, Stats};
use crate::runtime::task::{self, Schedule, Task};
use std::cell::RefCell;
use std::thread;
@@ -272,15 +271,3 @@ fn stress2() {
assert_eq!(num_pop, NUM_TASKS);
}
}
struct Runtime;
impl Schedule for Runtime {
fn release(&self, _task: &Task<Self>) -> Option<Task<Self>> {
None
}
fn schedule(&self, _task: task::Notified<Self>) {
unreachable!();
}
}