-
Notifications
You must be signed in to change notification settings - Fork 304
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
Format should not panic if you try to format it more than once #307
Comments
(3) From previous discussion I have understood that fmt's error return should not be used by the thing that is being formatted. It's used to relay the information that an I/O error happened through the formatting chain. I don't know how to solve it, I think this is a drawback that comes from our skirting the rules a bit for formatting. |
This was referenced May 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some logging frameworks will format things sent to the
error!
macro twice.Some possible solutions:
Clone
bound on the iterator being formatted so that we can format it multiple timesfmt
return aResult
anyway? Why not just returnErr
?The text was updated successfully, but these errors were encountered: