This is an automated archive made by the Lemmit Bot.

The original was posted on /r/rust by /u/WeeklyRustUser on 2025-04-23 21:09:02+00:00.


Currently the Write trait uses std::io::Error as its error type. This means that you have to handle errors that simply can’t happen (e.g. writing to a Vec should never fail). Is there a reason that there is no associated type Error for Write? I’m imagining something like this.