diff --git a/components/layout/flow_list.rs b/components/layout/flow_list.rs index a53df4706e3..af54dddee9d 100644 --- a/components/layout/flow_list.rs +++ b/components/layout/flow_list.rs @@ -25,27 +25,27 @@ pub struct MutFlowListIterator<'a> { impl FlowList { /// Provide a reference to the front element, or None if the list is empty #[inline] - pub fn front(&self) -> Option<&Flow> { + pub fn front<'a>(&'a self) -> Option<&'a Flow> { self.flows.front().map(|head| &**head) } /// Provide a mutable reference to the front element, or None if the list is empty #[inline] #[allow(unsafe_code)] - pub unsafe fn front_mut(&mut self) -> Option<&mut Flow> { + pub unsafe fn front_mut<'a>(&'a mut self) -> Option<&'a mut Flow> { self.flows.front_mut().map(flow_ref::deref_mut) } /// Provide a reference to the back element, or None if the list is empty #[inline] - pub fn back(&self) -> Option<&Flow> { + pub fn back<'a>(&'a self) -> Option<&'a Flow> { self.flows.back().map(|tail| &**tail) } /// Provide a mutable reference to the back element, or None if the list is empty #[inline] #[allow(unsafe_code)] - pub unsafe fn back_mut(&mut self) -> Option<&mut Flow> { + pub unsafe fn back_mut<'a>(&'a mut self) -> Option<&'a mut Flow> { self.flows.back_mut().map(flow_ref::deref_mut) }