Remove explicit lifetimes which can be elided.

This commit is contained in:
Adam Szopa 2015-10-21 01:00:58 +02:00
parent 11d23a41b3
commit 88991013ab
39 changed files with 66 additions and 66 deletions

View file

@ -20,7 +20,7 @@ pub type WeakFlowRef = Weak<Flow>;
/// See https://github.com/servo/servo/issues/6503
/// Use Arc::get_mut instead when possible (e.g. on an Arc that was just created).
#[allow(unsafe_code)]
pub fn deref_mut<'a>(r: &'a mut FlowRef) -> &'a mut Flow {
pub fn deref_mut<'a>(r: &mut FlowRef) -> &'a mut Flow {
let ptr: *const Flow = &**r;
unsafe {
&mut *(ptr as *mut Flow)