mirror of https://github.com/fafhrd91/actix-web
Merge ebd717d715
into 7bc7b4839b
This commit is contained in:
commit
597b611395
|
@ -76,8 +76,7 @@ impl SharedHttpInnerMessage {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get_mut(&mut self) -> &mut HttpInnerMessage {
|
pub fn get_mut(&mut self) -> &mut HttpInnerMessage {
|
||||||
let r: &HttpInnerMessage = self.0.as_ref().unwrap().as_ref();
|
Rc::get_mut(self.0.as_mut().unwrap()).expect("cannot get mutable reference while object is immutably borrowed")
|
||||||
unsafe { &mut *(r as *const _ as *mut _) }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in New Issue