From 2443c1f1f341f323d4c78761034f5b0cb4b4b6f3 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 1 Sep 2021 20:57:00 +0100 Subject: [PATCH] clippy --- actix-rt/tests/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actix-rt/tests/tests.rs b/actix-rt/tests/tests.rs index 285c4074..e2c4b262 100644 --- a/actix-rt/tests/tests.rs +++ b/actix-rt/tests/tests.rs @@ -300,11 +300,12 @@ fn try_current_with_system() { System::new().block_on(async { assert!(System::try_current().is_some()) }); } +#[allow(clippy::unit_cmp)] #[actix_rt::test] async fn spawn_local() { // demonstrate that spawn -> R is strictly more capable than spawn -> () - assert_eq!(actix_rt::spawn(async { (|| {})() }).await.unwrap(), ()); + assert_eq!(actix_rt::spawn(async {}).await.unwrap(), ()); assert_eq!(actix_rt::spawn(async { 1 }).await.unwrap(), 1); assert!(actix_rt::spawn(async { panic!("") }).await.is_err());