Mutable slice passed for FileSystemSyncAccessHandle
's write functions in web_sys
#3536
Labels
FileSystemSyncAccessHandle
's write functions in web_sys
#3536
Describe the Bug
The type
FileSystemSyncAccessHandle
of the web_sys crate has twowrite
functions which can take au8
slice to write to the handle. However, the slice has to be passed as mutable, which can be a problem if you want to integrate it with any kind ofWrite
trait from std or other synchronous or asynchronous crates, which only provide an immutable reference to the slice of data to write.Steps to Reproduce
N/A
Expected Behavior
I expect the write functions
write_with_u8_array
andwrite_with_u8_array_and_options
to take an immutable reference for the slice of data to write.Actual Behavior
The write functions
write_with_u8_array
andwrite_with_u8_array_and_options
only accept mutable slices.Additional Context
N/A
The text was updated successfully, but these errors were encountered: