mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Updates Bluetooth type to use BufferSource
This commit is contained in:
parent
5bf2e71407
commit
ef0e93c9b1
4 changed files with 17 additions and 11 deletions
|
@ -167,8 +167,8 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris
|
|||
|
||||
// Step 2 - 3.
|
||||
let vec = match value {
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBufferView(mut avb) => avb.to_vec(),
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBuffer(mut ab) => ab.to_vec(),
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBufferView(avb) => avb.to_vec(),
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBuffer(ab) => ab.to_vec(),
|
||||
};
|
||||
|
||||
if vec.len() > MAXIMUM_ATTRIBUTE_LENGTH {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue