mirror of https://github.com/fafhrd91/actix-web
Get rid of one more unsafe
This commit is contained in:
parent
4135f163c1
commit
d32f038182
|
@ -854,8 +854,8 @@ where
|
|||
}
|
||||
}
|
||||
}
|
||||
DispatcherState::Upgrade(ref mut fut) => {
|
||||
unsafe { Pin::new_unchecked(fut) }.poll(cx).map_err(|e| {
|
||||
DispatcherState::Upgrade(fut) => {
|
||||
fut.poll(cx).map_err(|e| {
|
||||
error!("Upgrade handler error: {}", e);
|
||||
DispatchError::Upgrade
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue