mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
Merge pull request #327 from xfix/remove-use-of-unsafe-from-pipeline-poll
Remove use of unsafe from Pipeline#poll
This commit is contained in:
commit
adcb4e1492
@ -336,8 +336,7 @@ impl Pipeline {
|
|||||||
|
|
||||||
// need read?
|
// need read?
|
||||||
if self.parser.is_some() {
|
if self.parser.is_some() {
|
||||||
let conn: &mut Connection =
|
let conn: &mut Connection = self.conn.as_mut().unwrap();
|
||||||
unsafe { &mut *(self.conn.as_mut().unwrap() as *mut _) };
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
match self
|
match self
|
||||||
|
Loading…
Reference in New Issue
Block a user