aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattdescriptor.rs
diff options
context:
space:
mode:
authorAnthony Urena <anthony.urena@protonmail.com>2018-03-24 16:10:28 -0400
committerAnthony Urena <anthony.urena@protonmail.com>2018-03-24 20:46:13 -0400
commit5bf2e71407d7d0cdde5d5da381dce545135ae93a (patch)
tree5938261b4aa248e1d51d872e8ec2e10d301e5124 /components/script/dom/bluetoothremotegattdescriptor.rs
parent40235da2d3c6eb5b9e36f9b63b6f96698f2f64c3 (diff)
downloadservo-5bf2e71407d7d0cdde5d5da381dce545135ae93a.tar.gz
servo-5bf2e71407d7d0cdde5d5da381dce545135ae93a.zip
Switches characteristic to use BufferSource
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r--components/script/dom/bluetoothremotegattdescriptor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs
index 54a6b1142b3..e120648d661 100644
--- a/components/script/dom/bluetoothremotegattdescriptor.rs
+++ b/components/script/dom/bluetoothremotegattdescriptor.rs
@@ -125,11 +125,11 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
}
// Step 2 - 3.
- let v = match value {
+ let vec = match value {
ArrayBufferViewOrArrayBuffer::ArrayBufferView(mut avb) => avb.to_vec(),
ArrayBufferViewOrArrayBuffer::ArrayBuffer(mut ab) => ab.to_vec(),
};
- if v.len() > MAXIMUM_ATTRIBUTE_LENGTH {
+ if vec.len() > MAXIMUM_ATTRIBUTE_LENGTH {
p.reject_error(InvalidModification);
return p;
}
@@ -145,7 +145,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
// in writeValue function and in handle_response function.
let sender = response_async(&p, self);
self.get_bluetooth_thread().send(
- BluetoothRequest::WriteValue(self.get_instance_id(), v, sender)).unwrap();
+ BluetoothRequest::WriteValue(self.get_instance_id(), vec, sender)).unwrap();
return p;
}
}