Skip to content

Use core::fmt::Write instead of custom StrWrite? #492

@camelid

Description

@camelid

Is there a particular reason that pulldown-cmark defines its own type, StrWrite, rather than using the built-in Rust trait core::fmt::Write? Previously core::fmt::Write's documentation said

This trait should generally not be implemented by consumers of the standard library.

But in a recent PR, I changed it to remove that section since no one knew of a reason why it said that. Perhaps it would be good to move pulldown over to that built-in trait?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions