1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 18:44:35 +01:00

Remove use of unsafe from Pipeline#poll

This commit is contained in:
Konrad Borowski 2018-06-19 13:42:44 +02:00
parent 5c42b0902f
commit 877e177b60

View File

@ -336,8 +336,7 @@ impl Pipeline {
// need read?
if self.parser.is_some() {
let conn: &mut Connection =
unsafe { &mut *(self.conn.as_mut().unwrap() as *mut _) };
let conn: &mut Connection = self.conn.as_mut().unwrap();
loop {
match self