From 7fbd2a521ee8ec6b21dd67e462da25883ecccabf Mon Sep 17 00:00:00 2001 From: tanishka <109246904+taniishkaaa@users.noreply.github.com> Date: Wed, 23 Oct 2024 04:13:52 +0530 Subject: CanGc fixes from eventtarget.rs (#33973) Signed-off-by: taniishkaaa --- components/script/dom/bluetoothdevice.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/script/dom/bluetoothdevice.rs') diff --git a/components/script/dom/bluetoothdevice.rs b/components/script/dom/bluetoothdevice.rs index 6a74dcbb6a0..8fd8e316f3b 100644 --- a/components/script/dom/bluetoothdevice.rs +++ b/components/script/dom/bluetoothdevice.rs @@ -193,7 +193,7 @@ impl BluetoothDevice { // https://webbluetoothcg.github.io/web-bluetooth/#clean-up-the-disconnected-device #[allow(crown::unrooted_must_root)] - pub fn clean_up_disconnected_device(&self) { + pub fn clean_up_disconnected_device(&self, can_gc: CanGc) { // Step 1. self.get_gatt().set_connected(false); @@ -224,7 +224,7 @@ impl BluetoothDevice { // Step 8. self.upcast::() - .fire_bubbling_event(atom!("gattserverdisconnected")); + .fire_bubbling_event(atom!("gattserverdisconnected"), can_gc); } // https://webbluetoothcg.github.io/web-bluetooth/#garbage-collect-the-connection @@ -317,7 +317,7 @@ impl BluetoothDeviceMethods for BluetoothDevice { } impl AsyncBluetoothListener for BluetoothDevice { - fn handle_response(&self, response: BluetoothResponse, promise: &Rc) { + fn handle_response(&self, response: BluetoothResponse, promise: &Rc, _can_gc: CanGc) { match response { // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-unwatchadvertisements BluetoothResponse::WatchAdvertisements(_result) => { -- cgit v1.2.3