From 5c24da3e2d01b5c583d8def9936a5355b3c27f87 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 4 Sep 2015 09:24:49 +0530 Subject: [PATCH] Undo elision for trait object; trait objects are strange --- components/layout/flow_list.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) }