diff options
Diffstat (limited to 'components/script/dom/bluetoothremotegattcharacteristic.rs')
-rw-r--r-- | components/script/dom/bluetoothremotegattcharacteristic.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/bluetoothremotegattcharacteristic.rs b/components/script/dom/bluetoothremotegattcharacteristic.rs index 9640ba95d52..f1c26f47c42 100644 --- a/components/script/dom/bluetoothremotegattcharacteristic.rs +++ b/components/script/dom/bluetoothremotegattcharacteristic.rs @@ -307,9 +307,8 @@ impl AsyncBluetoothListener for BluetoothRemoteGATTCharacteristic { promise.resolve_native(promise_cx, &value); }, BluetoothResponse::WriteValue(result) => { - let value = ByteString::new(result); - *self.value.borrow_mut() = Some(value.clone()); - promise.resolve_native(promise_cx, &value); + *self.value.borrow_mut() = Some(ByteString::new(result)); + promise.resolve_native(promise_cx, &()); }, BluetoothResponse::EnableNotification(_result) => { promise.resolve_native(promise_cx, self); |