Get rid of one more unsafe

This commit is contained in:
Maksym Vorobiov 2020-02-10 12:12:23 +02:00
parent 4135f163c1
commit d32f038182
1 changed files with 2 additions and 2 deletions

View File

@ -854,8 +854,8 @@ where
} }
} }
} }
DispatcherState::Upgrade(ref mut fut) => { DispatcherState::Upgrade(fut) => {
unsafe { Pin::new_unchecked(fut) }.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
}) })