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 })