diff --git a/src/servo/layout/base.rs b/src/servo/layout/base.rs index 80bcda82db3..eba8999ef55 100644 --- a/src/servo/layout/base.rs +++ b/src/servo/layout/base.rs @@ -46,7 +46,7 @@ impl of tree::rd_tree_ops for ntree { tree::each_child(self, node, f) } - fn with_tree_fields(n: node, f: fn(tree::fields) -> R) -> R { + fn with_tree_fields(&&n: node, f: fn(tree::fields) -> R) -> R { n.rd { |n| f(n.tree) } } } @@ -57,7 +57,7 @@ impl of tree::rd_tree_ops<@box> for btree { tree::each_child(self, node, f) } - fn with_tree_fields(b: @box, f: fn(tree::fields<@box>) -> R) -> R { + fn with_tree_fields(&&b: @box, f: fn(tree::fields<@box>) -> R) -> R { f(b.tree) } } @@ -67,7 +67,7 @@ impl of tree::wr_tree_ops<@box> for btree { tree::add_child(self, node, child) } - fn with_tree_fields(b: @box, f: fn(tree::fields<@box>) -> R) -> R { + fn with_tree_fields(&&b: @box, f: fn(tree::fields<@box>) -> R) -> R { f(b.tree) } }