Auto merge of #8482 - frewsxcv:no-mut, r=Ms2ger

Remove unnecessary '*_mut' methods

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8482)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-12 16:44:09 +05:30
commit 448c7fb2e6

View file

@ -79,8 +79,8 @@ impl Page {
pub fn remove(&self, id: PipelineId) -> Option<Rc<Page>> {
let remove_idx = {
self.children
.borrow_mut()
.iter_mut()
.borrow()
.iter()
.position(|page_tree| page_tree.id == id)
};
match remove_idx {