From bf025e9b9ba6aa105dc2a7eba6752e7ece59a0f1 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Fri, 26 Sep 2014 20:49:40 -0700 Subject: [PATCH] Refine a lifetime parameter --- components/layout/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 1d3a94d9b6c..517fdb36fef 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -611,7 +611,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> { /// If this is an element, accesses the element data. Fails if this is not an element node. #[inline] - pub fn as_element(&self) -> ThreadSafeLayoutElement { + pub fn as_element(&self) -> ThreadSafeLayoutElement<'ln> { unsafe { assert!(self.get_jsmanaged().is_element_for_layout()); let elem: JS = self.get_jsmanaged().transmute_copy();