Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impl fmt::Write for AsciiString, and add tests #33

Merged
merged 3 commits into from
Feb 9, 2017

Conversation

burtonageo
Copy link
Contributor

This is implemented for std::String as well

Copy link
Owner

@tomprogrammer tomprogrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR!

@@ -466,6 +466,20 @@ impl fmt::Debug for AsciiString {
}
}

impl fmt::Write for AsciiString {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add some documentation that fmt::Write methods "[do] not support transmission of an error other than that an error occurred." (from std::fmt::Error). This is just to remind users of this API how to handle errors correctly.

@tomprogrammer tomprogrammer merged commit ed58225 into tomprogrammer:master Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants