From 83e8fff090cdb01d584b0b0bc5e697a2c51da0d0 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Mon, 30 Sep 2019 15:06:17 -0400 Subject: [PATCH] reactor: Remove extra semi colon (#1616) * reactor: Remove extra semi colon * fmt --- tokio-current-thread/tests/current_thread.rs | 2 -- tokio-reactor/src/lib.rs | 2 +- tokio-signal/examples/multiple.rs | 1 - tokio-signal/examples/sighup-example.rs | 1 - tokio-test/src/macros.rs | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tokio-current-thread/tests/current_thread.rs b/tokio-current-thread/tests/current_thread.rs index 00013f01e..dca0190e2 100644 --- a/tokio-current-thread/tests/current_thread.rs +++ b/tokio-current-thread/tests/current_thread.rs @@ -445,7 +445,6 @@ mod and_turn { }, ); } - } mod in_drop { @@ -520,7 +519,6 @@ mod in_drop { }, ); } - } #[test] diff --git a/tokio-reactor/src/lib.rs b/tokio-reactor/src/lib.rs index 32180f358..2334d32be 100644 --- a/tokio-reactor/src/lib.rs +++ b/tokio-reactor/src/lib.rs @@ -631,7 +631,7 @@ impl HandlePriv { } unsafe fn from_usize(val: usize) -> HandlePriv { - let inner = mem::transmute::>(val);; + let inner = mem::transmute::>(val); HandlePriv { inner } } diff --git a/tokio-signal/examples/multiple.rs b/tokio-signal/examples/multiple.rs index 8baad876c..9ce0c276a 100644 --- a/tokio-signal/examples/multiple.rs +++ b/tokio-signal/examples/multiple.rs @@ -39,7 +39,6 @@ mod platform { } Ok(()) } - } #[cfg(not(unix))] diff --git a/tokio-signal/examples/sighup-example.rs b/tokio-signal/examples/sighup-example.rs index 8f3305258..05749a60a 100644 --- a/tokio-signal/examples/sighup-example.rs +++ b/tokio-signal/examples/sighup-example.rs @@ -38,7 +38,6 @@ mod platform { ::tokio::runtime::current_thread::block_on_all(future)?; Ok(()) } - } #[cfg(not(unix))] diff --git a/tokio-test/src/macros.rs b/tokio-test/src/macros.rs index 4dbabd296..e760c05b4 100644 --- a/tokio-test/src/macros.rs +++ b/tokio-test/src/macros.rs @@ -127,5 +127,4 @@ mod tests { let mut fut = future::ok::<(), ()>(()); assert_ready_eq!(fut.poll(), ()); } - }