Skip to content
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

Don't panic when formatting ToFmt #141

Merged
merged 1 commit into from
May 18, 2023
Merged

Don't panic when formatting ToFmt #141

merged 1 commit into from
May 18, 2023

Conversation

KodrAus
Copy link
Collaborator

@KodrAus KodrAus commented May 18, 2023

This is the same as KodrAus/serde_fmt#15. If an implementation of Value panics (which they're allowed to do) then attempting to format it will panic. This works around that in the same way by printing the error within the formatted string without returning it.

@KodrAus KodrAus merged commit 30dcb1b into main May 18, 2023
50 checks passed
@KodrAus KodrAus deleted the fix/panicking-to-string branch May 18, 2023 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant