diff options
author | tanishka <109246904+taniishkaaa@users.noreply.github.com> | 2024-10-23 04:13:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 22:43:52 +0000 |
commit | 7fbd2a521ee8ec6b21dd67e462da25883ecccabf (patch) | |
tree | a81a220df1e612112e323aba8187f9344fc1fb32 /components/script/dom/bluetoothdevice.rs | |
parent | 7b392db02f96fa5f3663c5c9d29eed988efe0030 (diff) | |
download | servo-7fbd2a521ee8ec6b21dd67e462da25883ecccabf.tar.gz servo-7fbd2a521ee8ec6b21dd67e462da25883ecccabf.zip |
CanGc fixes from eventtarget.rs (#33973)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/bluetoothdevice.rs')
-rw-r--r-- | components/script/dom/bluetoothdevice.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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::<EventTarget>() - .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<Promise>) { + fn handle_response(&self, response: BluetoothResponse, promise: &Rc<Promise>, _can_gc: CanGc) { match response { // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-unwatchadvertisements BluetoothResponse::WatchAdvertisements(_result) => { |