Remove unnecessary '*_mut' methods

This commit is contained in:
Corey Farwell 2015-11-12 00:12:39 -05:00
parent 1b20bc90ee
commit 1e6d95f750

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 {