1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-07-03 20:45:46 +00:00

Get rid of one more unsafe

This commit is contained in:
Maksym Vorobiov 2020-02-10 12:12:23 +02:00 committed by Yuki Okushi
parent ec5c779732
commit 69dab0063c

View file

@ -853,8 +853,8 @@ where
} }
} }
} }
DispatcherState::Upgrade(ref mut fut) => { DispatcherState::Upgrade(fut) => {
fut.as_mut().poll(cx).map_err(|e| { fut.poll(cx).map_err(|e| {
error!("Upgrade handler error: {}", e); error!("Upgrade handler error: {}", e);
DispatchError::Upgrade DispatchError::Upgrade
}) })