mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Remove unnecessary '*_mut' methods
This commit is contained in:
parent
1b20bc90ee
commit
1e6d95f750
1 changed files with 2 additions and 2 deletions
|
@ -79,8 +79,8 @@ impl Page {
|
||||||
pub fn remove(&self, id: PipelineId) -> Option<Rc<Page>> {
|
pub fn remove(&self, id: PipelineId) -> Option<Rc<Page>> {
|
||||||
let remove_idx = {
|
let remove_idx = {
|
||||||
self.children
|
self.children
|
||||||
.borrow_mut()
|
.borrow()
|
||||||
.iter_mut()
|
.iter()
|
||||||
.position(|page_tree| page_tree.id == id)
|
.position(|page_tree| page_tree.id == id)
|
||||||
};
|
};
|
||||||
match remove_idx {
|
match remove_idx {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue