Don't discourage people from using std::fmt::Write
#76729
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
A-fmt
Area: `std::fmt`
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
The docs for
std::fmt::Write
discourage using it outside of the standard library:Yet it is relatively often that one needs a trait for writing Unicode to a stream. For example,
pulldown-cmark
has a trait very similar to this one calledStrWrite
.When I asked in Zulip, nobody seemed to know why that comment is there.
It would be good to have a standard that every library can use for this.
@rustbot modify labels: A-fmt T-libs T-doc
The text was updated successfully, but these errors were encountered: