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

Rework UTF-8 writing #277

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Rework UTF-8 writing #277

wants to merge 2 commits into from

Conversation

rkuklik
Copy link

@rkuklik rkuklik commented Nov 22, 2024

See #275.

This needs more polish, mainly around docs and naming things. Also, the into_inner method is inconsistent with previous implementation, so it should either be removed or adjusted.

/// Returns the base64-encoded form of the accumulated written data.
pub fn formatter(mut self) -> W {
self.finish()
.expect("Writing to a consumer should never fail")
Copy link
Owner

Choose a reason for hiding this comment

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

This is what's not going to work for me. We should not assume that this will always succeed. Anyone is free to implement Write and take the contract at its word that write_str can fail.

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