1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-09 05:08:32 +00: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:
Nikolay Kim 2018-06-19 19:58:15 +06:00 committed by GitHub
commit adcb4e1492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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