-
Notifications
You must be signed in to change notification settings - Fork 218
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
Feature request: Writer::terminate_record #302
Comments
I suppose, although the problem I have with this is that using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of the
csv
crate are you using?1.2.0
Briefly describe the question, bug or feature request.
csv::Writer::write_field
suggests to usewrite_record
with empty iterator to terminate a record:However, using
write_record
this way requires a clumsy turbofish, as shown in the documentation:It is even more confusing if user tries to go the
wtr.write_recrord::<?, ?>(...);
route instead.I suggest to add a dedicated method like
terminate_record
that is equivalent towrite_record(None::<&[u8]>)
, then update documentation ofwrite_field
to use that method.The text was updated successfully, but these errors were encountered: