aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/page.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-11-12 00:12:39 -0500
committerCorey Farwell <coreyf@rwell.org>2015-11-12 00:12:39 -0500
commit1e6d95f7503e5c3b7c8ae51eefa4c276e83ec98a (patch)
tree86badc130e66cba77ab45bc4034c79c1789de295 /components/script/page.rs
parent1b20bc90ee8321aaa95e1906321753549ad166e6 (diff)
downloadservo-1e6d95f7503e5c3b7c8ae51eefa4c276e83ec98a.tar.gz
servo-1e6d95f7503e5c3b7c8ae51eefa4c276e83ec98a.zip
Remove unnecessary '*_mut' methods
Diffstat (limited to 'components/script/page.rs')
-rw-r--r--components/script/page.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/page.rs b/components/script/page.rs
index 67cb1ca46ed..2aee3361660 100644
--- a/components/script/page.rs
+++ b/components/script/page.rs
@@ -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 {