Auto merge of #5550 - aneeshusa:fix-issue-5540, r=jdm

Fixes issue #5540.

As far as I can tell this is all that's necessary, but I'm new to Rust, so let me know if I missed something!
This commit is contained in:
bors-servo 2015-04-07 23:04:12 -05:00
commit 2089c1f285

View file

@ -174,7 +174,7 @@ impl<T: Reflectable> Temporary<T> {
}
/// Create a stack-bounded root for this value.
pub fn root(self) -> Root<T> {
pub fn root(&self) -> Root<T> {
STACK_ROOTS.with(|ref collection| {
let RootCollectionPtr(collection) = collection.get().unwrap();
unsafe {