Handling OutOfMemory in Write for Vec
⚓ Rust 📅 2025-07-09 👤 surdeus 👁️ 17The 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