-
Notifications
You must be signed in to change notification settings - Fork 56
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
Builder::finish() does not 'close' inner Writer #9
Comments
looking through the docs, the In the above snippet, does that mean I can use |
I think it would also pay to update all examples to finish/close the writer. The one in the readme is presumably ok since |
hi @dignifiedquire could i get a bit of clarification on the questions above? I'm happy to take a run at this, but I want to make sure I understand the preferred solution |
Lets go with updating examples & docs for now. I agree it is surprising, but I think I'd like to keep the api as it is for now. We could add a call |
I agree that |
Builder::finish()
doesn't seem to flush the state of the inner writer. this means the following snippet doesn't work-but this snippet does work
that's more than a little surprising.
Builder::finish()
should flush the inner writer, or at the very least, this behaviour should be clearly documentedThe text was updated successfully, but these errors were encountered: