From 877e177b603934f86ccdf0ad8d8e2e7e45459d05 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 19 Jun 2018 13:42:44 +0200 Subject: [PATCH] Remove use of unsafe from Pipeline#poll --- src/client/pipeline.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/pipeline.rs b/src/client/pipeline.rs index 76075b52..e77894b2 100644 --- a/src/client/pipeline.rs +++ b/src/client/pipeline.rs @@ -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