mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
fixed the unneeded return
statement warnings. (#31863)
This commit is contained in:
parent
f7669b5238
commit
d814d05539
15 changed files with 33 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue