aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattdescriptor.rs
diff options
context:
space:
mode:
authorAarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com>2024-03-26 14:28:34 +0530
committerGitHub <noreply@github.com>2024-03-26 08:58:34 +0000
commitd814d0553981777c01409d545e5c1c335b8eb7f4 (patch)
tree302eff0af012b614e64efe16fa7c11821c5bdadb /components/script/dom/bluetoothremotegattdescriptor.rs
parentf7669b5238ce9e2a94495472bf77f67b0e311cd8 (diff)
downloadservo-d814d0553981777c01409d545e5c1c335b8eb7f4.tar.gz
servo-d814d0553981777c01409d545e5c1c335b8eb7f4.zip
fixed the `unneeded return` statement warnings. (#31863)
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r--components/script/dom/bluetoothremotegattdescriptor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs
index 675863b17f4..1b07d2ee87a 100644
--- a/components/script/dom/bluetoothremotegattdescriptor.rs
+++ b/components/script/dom/bluetoothremotegattdescriptor.rs
@@ -122,7 +122,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
self.get_bluetooth_thread()
.send(BluetoothRequest::ReadValue(self.get_instance_id(), sender))
.unwrap();
- return p;
+ p
}
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattdescriptor-writevalue
@@ -168,7 +168,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
sender,
))
.unwrap();
- return p;
+ p
}
}