Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Handling OutOfMemory in Write for Vec
The io::ErrorKind
has a variant for OutOfMemory
, which is used in some io methods like read_to_end
. The impl Write for Vec<u8>
does not handle it though, but easily could by replacing reserve
with try_reserve
. I'm wondering whether that was a conscious decision, or whether a simple PR would be welcome? Or does such change need a more complex process?
1 post - 1 participant
🏷️ rust_feed