Skip to content

Should format_collect be warn by default? #11434

Closed
@smoelius

Description

@smoelius

Description

format_collect suggests to replace format! with write!.

A downside of this suggestion is that it replaces a infallible function with a fallible one (i.e., write! returns a Result, whereas format! does not).

format_push_string has a similar downside, and it was moved to restriction for this reason.

Should the same standard apply to format_collect? Or is something about its situation different?

cc: @y21, @Centri3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions