We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 930a42b commit 2dad80eCopy full SHA for 2dad80e
1 file changed
src/core.rs
@@ -156,8 +156,6 @@ mod tests {
156
#[cfg(feature = "net-tests")]
157
use tokio::io::AsyncReadExt;
158
159
- use tokio::io::AsyncWriteExt;
160
- #[cfg(feature = "net-tests")]
161
use tokio::net::TcpListener;
162
163
fn env_lock() -> &'static Mutex<()> {
@@ -461,6 +459,8 @@ mod tests {
461
459
async fn start_chunked_image_server(
462
460
chunks: Vec<Vec<u8>>,
463
) -> (String, tokio::task::JoinHandle<()>) {
+ use tokio::io::AsyncWriteExt as _;
+
464
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
465
let addr = listener.local_addr().unwrap();
466
let handle = tokio::spawn(async move {
0 commit comments