You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I recently ran into a case where I was trying to use std::fs::write on a file with the AccessFs::WriteFile access right. This doesn't work, because std::fs::write first truncates:
This is a convenience function for using File::create and write_all with fewer imports.
I had only ever used ABI::V1 before, where this isn't an issue. When I tried ABI::V4 this was suddenly breaking.
Hello, I recently ran into a case where I was trying to use std::fs::write on a file with the AccessFs::WriteFile access right. This doesn't work, because std::fs::write first truncates:
This is a convenience function for using File::create and write_all with fewer imports.
I had only ever used ABI::V1 before, where this isn't an issue. When I tried ABI::V4 this was suddenly breaking.
Hello, I recently ran into a case where I was trying to use
std::fs::write
on a file with theAccessFs::WriteFile
access right. This doesn't work, becausestd::fs::write
first truncates:I had only ever used
ABI::V1
before, where this isn't an issue. When I triedABI::V4
this was suddenly breaking.Suggested Fix
Under
AccessFs::WriteFile
, document something like:If that sounds reasonable, I could do that along with #53 in one PR. :)
The text was updated successfully, but these errors were encountered: