mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
fixes dereferencing on an immutable reference (#31864)
This commit is contained in:
parent
585e0d69cd
commit
f7669b5238
32 changed files with 76 additions and 77 deletions
|
@ -38,7 +38,7 @@ impl GamepadList {
|
|||
.iter()
|
||||
.any(|g| g.gamepad_id() == gamepad.gamepad_id())
|
||||
{
|
||||
self.list.borrow_mut().push(Dom::from_ref(&*gamepad));
|
||||
self.list.borrow_mut().push(Dom::from_ref(gamepad));
|
||||
// Ensure that the gamepad has the correct index
|
||||
gamepad.update_index(self.list.borrow().len() as i32 - 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue