From 59e976aacaab7e4fbaad18108863846dfbd2dfcd Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 24 Nov 2020 16:35:47 +0000 Subject: [PATCH] address clippy error (#213) --- actix-rt/src/arbiter.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/actix-rt/src/arbiter.rs b/actix-rt/src/arbiter.rs index eff10ca3..9a5f1f93 100644 --- a/actix-rt/src/arbiter.rs +++ b/actix-rt/src/arbiter.rs @@ -134,10 +134,7 @@ impl Arbiter { .unbounded_send(SystemCommand::RegisterArbiter(id, arb)); // run loop - let _ = match rt.block_on(stop_rx) { - Ok(code) => code, - Err(_) => 1, - }; + let _ = rt.block_on(stop_rx).unwrap_or(1); // unregister arbiter let _ = System::current()