aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattcharacteristic.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-29 06:11:06 -0800
committerGitHub <noreply@github.com>2016-11-29 06:11:06 -0800
commit7be32770b18854af11acdbf3ec229b2a5d763a61 (patch)
treef3e590100491926385ace9a032d01c8062d830d1 /components/script/dom/bluetoothremotegattcharacteristic.rs
parent00f30d1b7e0073cd7896eee12ca3832c017993a0 (diff)
parent50a5639a8b817a9686bd7b90f77197ca823749b9 (diff)
downloadservo-7be32770b18854af11acdbf3ec229b2a5d763a61.tar.gz
servo-7be32770b18854af11acdbf3ec229b2a5d763a61.zip
Auto merge of #14393 - dati91:fix, r=jdm
WriteValue should return undefined <!-- Please describe your changes on the following line: --> <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14393) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bluetoothremotegattcharacteristic.rs')
-rw-r--r--components/script/dom/bluetoothremotegattcharacteristic.rs5
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);