From 69dab0063c27bf4ac5b684884d787e7772da1c50 Mon Sep 17 00:00:00 2001 From: Maksym Vorobiov Date: Mon, 10 Feb 2020 12:12:23 +0200 Subject: [PATCH] Get rid of one more unsafe --- actix-http/src/h1/dispatcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-http/src/h1/dispatcher.rs b/actix-http/src/h1/dispatcher.rs index 7429c50f7..6e226a30d 100644 --- a/actix-http/src/h1/dispatcher.rs +++ b/actix-http/src/h1/dispatcher.rs @@ -853,8 +853,8 @@ where } } } - DispatcherState::Upgrade(ref mut fut) => { - fut.as_mut().poll(cx).map_err(|e| { + DispatcherState::Upgrade(fut) => { + fut.poll(cx).map_err(|e| { error!("Upgrade handler error: {}", e); DispatchError::Upgrade })