mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 07:36:43 +00:00
Remove use of unsafe from Pipeline#poll
This commit is contained in:
parent
5c42b0902f
commit
877e177b60
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue