mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 18:09:22 +02:00
Remove use of unsafe from Pipeline#poll
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user