-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve string value reader and writer error behavior
Now when an error occurs, any subsequent read and write attempts will return an error as well. This might still not fully satisfy the requirements of `Read::read` and `Write::write` (see https://users.rust-lang.org/t/error-handling-for-custom-read-read-write-write-implementation/101742) but it is at least less error-prone than the previous behavior in case users assume they can continue reading from a `Read` or writing to a `Write` after an error occurred.
- Loading branch information
1 parent
1fddf25
commit d436a6f
Showing
3 changed files
with
130 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters