From 9f32aef8ea738f62bcf97e9e9e758969de4027de Mon Sep 17 00:00:00 2001 From: Nur Date: Sat, 12 Oct 2024 13:02:54 +0600 Subject: [PATCH] tokio-util: formatted code --- tokio-util/tests/framed_stream.rs | 2 +- tokio-util/tests/io_sink_writer.rs | 2 +- tokio-util/tests/mpsc.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tokio-util/tests/framed_stream.rs b/tokio-util/tests/framed_stream.rs index bb28a7913f7..056ff239822 100644 --- a/tokio-util/tests/framed_stream.rs +++ b/tokio-util/tests/framed_stream.rs @@ -1,7 +1,7 @@ use futures_core::stream::Stream; -use tokio_test_macros::tokio_test; use std::{io, pin::Pin}; use tokio_test::{assert_ready, io::Builder, task}; +use tokio_test_macros::tokio_test; use tokio_util::codec::{BytesCodec, FramedRead}; macro_rules! pin { diff --git a/tokio-util/tests/io_sink_writer.rs b/tokio-util/tests/io_sink_writer.rs index 2f635af7ecc..0f7fb11557c 100644 --- a/tokio-util/tests/io_sink_writer.rs +++ b/tokio-util/tests/io_sink_writer.rs @@ -2,9 +2,9 @@ use bytes::Bytes; use futures_util::SinkExt; -use tokio_test_macros::tokio_test; use std::io::{self, Error, ErrorKind}; use tokio::io::AsyncWriteExt; +use tokio_test_macros::tokio_test; use tokio_util::codec::{Encoder, FramedWrite}; use tokio_util::io::{CopyToBytes, SinkWriter}; use tokio_util::sync::PollSender; diff --git a/tokio-util/tests/mpsc.rs b/tokio-util/tests/mpsc.rs index 6e25e45f015..20df84991a7 100644 --- a/tokio-util/tests/mpsc.rs +++ b/tokio-util/tests/mpsc.rs @@ -1,11 +1,11 @@ use futures::sink::SinkExt; -use tokio_test_macros::tokio_test; use std::future::poll_fn; use tokio::sync::mpsc::channel; use tokio_test::task::spawn; use tokio_test::{ assert_ok, assert_pending, assert_ready, assert_ready_eq, assert_ready_err, assert_ready_ok, }; +use tokio_test_macros::tokio_test; use tokio_util::sync::PollSender; #[tokio_test(miri)]