diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-21 18:48:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 17:48:54 +0000 |
commit | 3e63f8d6ee0dbd7934a0cb05753820676b89c61d (patch) | |
tree | 4c8a4918ba1c320fe42c8fec4d2ebc21f82e7463 /components/script/dom/bluetoothremotegattservice.rs | |
parent | 694e86ecffb882f6d5934eb620257e9fceddbca8 (diff) | |
download | servo-3e63f8d6ee0dbd7934a0cb05753820676b89c61d.tar.gz servo-3e63f8d6ee0dbd7934a0cb05753820676b89c61d.zip |
clippy: Fix needless borrow warnings (#31813)
Diffstat (limited to 'components/script/dom/bluetoothremotegattservice.rs')
-rw-r--r-- | components/script/dom/bluetoothremotegattservice.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bluetoothremotegattservice.rs b/components/script/dom/bluetoothremotegattservice.rs index 1bac5715bdc..abb65d83c2a 100644 --- a/components/script/dom/bluetoothremotegattservice.rs +++ b/components/script/dom/bluetoothremotegattservice.rs @@ -157,14 +157,14 @@ impl AsyncBluetoothListener for BluetoothRemoteGATTService { BluetoothResponse::GetCharacteristics(characteristics_vec, single) => { if single { promise.resolve_native( - &device.get_or_create_characteristic(&characteristics_vec[0], &self), + &device.get_or_create_characteristic(&characteristics_vec[0], self), ); return; } let mut characteristics = vec![]; for characteristic in characteristics_vec { let bt_characteristic = - device.get_or_create_characteristic(&characteristic, &self); + device.get_or_create_characteristic(&characteristic, self); characteristics.push(bt_characteristic); } promise.resolve_native(&characteristics); |