Open
Description
several WebUSB functions that take a [u8]
slice, e.g., transfer_out_with_u8_array, require it be passed as &mut
. As far as I can tell this is not required since USB transfers are unidirectional.
full list of affected functions:
- control_transfer_out_with_u8_array
- isochronous_transfer_out_with_u8_array
- transfer_out_with_u8_array
other APIs might also be affected - I searched the docs for with_u8_array
and found e.g. ReadableByteStreamController::enqueue_with_u8_array taking a &mut
buffer which at first glance is only used for reading.
Metadata
Metadata
Assignees
Labels
No labels