Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Add .flush() method to Serializer #251

Merged
merged 1 commit into from Jul 16, 2022

Conversation

jturner314-nrl
Copy link
Contributor

Without this method, in order to flush the writer between YAML documents, the user has to call .into_inner() to get the underlying writer, optionally write "...\n", call .flush() on the writer, and then construct a new Serializer.

Without this method, in order to flush the writer between YAML
documents, the user has to call `.into_inner()` to get the underlying
writer, optionally write "...\n", call `.flush()` on the writer, and
then construct a new `Serializer`.
Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit db13750 into dtolnay:master Jul 16, 2022
@jturner314-nrl jturner314-nrl deleted the add-flush-method branch July 17, 2022 20:39
@jturner314-nrl
Copy link
Contributor Author

Thanks for merging this and releasing a new version so quickly!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants