Skip to content

Format should not panic if you try to format it more than once #307

Open
@zxqfl

Description

Some logging frameworks will format things sent to the error! macro twice.

Some possible solutions:

  1. Print a "iterator exhausted" message instead of panicking
  2. Impose a Clone bound on the iterator being formatted so that we can format it multiple times
  3. Doesn't fmt return a Result anyway? Why not just return Err?

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