diff options
author | Aarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com> | 2024-03-26 14:28:34 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 08:58:34 +0000 |
commit | d814d0553981777c01409d545e5c1c335b8eb7f4 (patch) | |
tree | 302eff0af012b614e64efe16fa7c11821c5bdadb /components/script/dom/bluetoothdevice.rs | |
parent | f7669b5238ce9e2a94495472bf77f67b0e311cd8 (diff) | |
download | servo-d814d0553981777c01409d545e5c1c335b8eb7f4.tar.gz servo-d814d0553981777c01409d545e5c1c335b8eb7f4.zip |
fixed the `unneeded return` statement warnings. (#31863)
Diffstat (limited to 'components/script/dom/bluetoothdevice.rs')
-rw-r--r-- | components/script/dom/bluetoothdevice.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bluetoothdevice.rs b/components/script/dom/bluetoothdevice.rs index a7fb3424ddd..e9ea28ed6cb 100644 --- a/components/script/dom/bluetoothdevice.rs +++ b/components/script/dom/bluetoothdevice.rs @@ -109,7 +109,7 @@ impl BluetoothDevice { service.instance_id.clone(), ); service_map.insert(service.instance_id.clone(), Dom::from_ref(&bt_service)); - return bt_service; + bt_service } pub fn get_or_create_characteristic( @@ -145,7 +145,7 @@ impl BluetoothDevice { characteristic.instance_id.clone(), Dom::from_ref(&bt_characteristic), ); - return bt_characteristic; + bt_characteristic } pub fn is_represented_device_null(&self) -> bool { @@ -179,7 +179,7 @@ impl BluetoothDevice { descriptor.instance_id.clone(), Dom::from_ref(&bt_descriptor), ); - return bt_descriptor; + bt_descriptor } fn get_bluetooth_thread(&self) -> IpcSender<BluetoothRequest> { @@ -288,7 +288,7 @@ impl BluetoothDeviceMethods for BluetoothDevice { sender, )) .unwrap(); - return p; + p } // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-unwatchadvertisements |