mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove explicit lifetimes which can be elided.
This commit is contained in:
parent
11d23a41b3
commit
88991013ab
39 changed files with 66 additions and 66 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue