Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tiif committed Oct 7, 2024
1 parent 91b3fa7 commit c75732b
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion tokio/tests/io_repeat.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![warn(rust_2018_idioms)]
#![cfg(all(feature = "full", not(miri)))]


use tokio::io::AsyncReadExt;

#[tokio::test]
Expand Down
1 change: 0 additions & 1 deletion tokio/tests/rt_handle_block_on.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![warn(rust_2018_idioms)]
#![cfg(all(feature = "full", not(miri)))]


// All io tests that deal with shutdown is currently ignored because there are known bugs in with
// shutting down the io driver while concurrently registering new resources. See
// https://github.com/tokio-rs/tokio/pull/3569#pullrequestreview-612703467 for more details.
Expand Down
4 changes: 2 additions & 2 deletions tokio/tests/rt_threaded.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(unknown_lints, unexpected_cfgs)]
#![warn(rust_2018_idioms)]
// Too slow on miri.
// Too slow on miri.
#![cfg(all(feature = "full", not(target_os = "wasi"), not(miri)))]

use tokio::io::{AsyncReadExt, AsyncWriteExt};
Expand Down Expand Up @@ -324,7 +324,7 @@ fn start_stop_callbacks_called() {

#[test]
// too slow on miri
#[cfg_attr(miri, ignore)]
#[cfg_attr(miri, ignore)]
fn blocking() {
// used for notifying the main thread
const NUM: usize = 1_000;
Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/signal_multi_rt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]
#![cfg(unix)]
#![cfg(not(miri))] // No `sigaction` on Miri.
#![cfg(not(miri))] // No `sigaction` on Miri.

mod support {
pub mod signal;
Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/signal_no_rt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]
#![cfg(unix)]
#![cfg(not(miri))] // No `sigaction` on Miri.
#![cfg(not(miri))] // No `sigaction` on Miri.

use tokio::signal::unix::{signal, SignalKind};

Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/signal_notify_both.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]
#![cfg(unix)]
#![cfg(not(miri))] // No `sigaction` on Miri.
#![cfg(not(miri))] // No `sigaction` on Miri.

mod support {
pub mod signal;
Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/signal_panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![cfg(feature = "full")]
#![cfg(unix)]
#![cfg(panic = "unwind")]
#![cfg(not(miri))] // No `sigaction` on Miri.
#![cfg(not(miri))] // No `sigaction` on Miri.

use std::error::Error;
use tokio::runtime::Builder;
Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/signal_twice.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]
#![cfg(unix)]
#![cfg(not(miri))] // No `sigaction` on Miri.
#![cfg(not(miri))] // No `sigaction` on Miri.

mod support {
pub mod signal;
Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/signal_usr1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]
#![cfg(unix)]
#![cfg(not(miri))] // No `sigaction` in Miri.
#![cfg(not(miri))] // No `sigaction` in Miri.

mod support {
pub mod signal;
Expand Down
1 change: 0 additions & 1 deletion tokio/tests/uds_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![cfg(unix)]
#![cfg(not(miri))]


use futures::future::try_join;
use std::io;
use tokio::{
Expand Down

0 comments on commit c75732b

Please sign in to comment.