aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothpermissionresult.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-21 18:48:54 +0100
committerGitHub <noreply@github.com>2024-03-21 17:48:54 +0000
commit3e63f8d6ee0dbd7934a0cb05753820676b89c61d (patch)
tree4c8a4918ba1c320fe42c8fec4d2ebc21f82e7463 /components/script/dom/bluetoothpermissionresult.rs
parent694e86ecffb882f6d5934eb620257e9fceddbca8 (diff)
downloadservo-3e63f8d6ee0dbd7934a0cb05753820676b89c61d.tar.gz
servo-3e63f8d6ee0dbd7934a0cb05753820676b89c61d.zip
clippy: Fix needless borrow warnings (#31813)
Diffstat (limited to 'components/script/dom/bluetoothpermissionresult.rs')
-rw-r--r--components/script/dom/bluetoothpermissionresult.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bluetoothpermissionresult.rs b/components/script/dom/bluetoothpermissionresult.rs
index 76f22864c30..bd28fa1ef2a 100644
--- a/components/script/dom/bluetoothpermissionresult.rs
+++ b/components/script/dom/bluetoothpermissionresult.rs
@@ -105,7 +105,7 @@ impl AsyncBluetoothListener for BluetoothPermissionResult {
if let Some(ref existing_device) = device_instance_map.get(&device.id) {
// https://webbluetoothcg.github.io/web-bluetooth/#request-the-bluetooth-permission
// Step 3.
- self.set_devices(vec![Dom::from_ref(&*existing_device)]);
+ self.set_devices(vec![Dom::from_ref(*existing_device)]);
// https://w3c.github.io/permissions/#dom-permissions-request
// Step 8.