mirror of
https://github.com/actix/actix-web.git
synced 2024-12-18 14:16:47 +00:00
Remove unsafe code from SharedHttpInnerMessage
This commit is contained in:
parent
2f917f3700
commit
ebd717d715
1 changed files with 1 additions and 2 deletions
|
@ -76,8 +76,7 @@ impl SharedHttpInnerMessage {
|
|||
|
||||
#[inline]
|
||||
pub fn get_mut(&mut self) -> &mut HttpInnerMessage {
|
||||
let r: &HttpInnerMessage = self.0.as_ref().unwrap().as_ref();
|
||||
unsafe { &mut *(r as *const _ as *mut _) }
|
||||
Rc::get_mut(self.0.as_mut().unwrap()).expect("cannot get mutable reference while object is immutably borrowed")
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in a new issue