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

Hide {} in error message from formatting machinery #40

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

dtolnay
Copy link
Contributor

@dtolnay dtolnay commented Nov 3, 2021

I am looking into resolving dtolnay/anyhow#55 and this looks like one of only 2 places on crates.io where "{}" is used intentionally in an error message — meanwhile there were a couple dozen where it's a bug where they forgot to pass a second argument that was supposed to be interpolated in the message.

If you are open to tweaking this code, I'll land a fix for dtolnay/anyhow#55 to help others catch missed format arguments.

@Misterio77
Copy link
Owner

Misterio77 commented Nov 3, 2021

LGTM! Thanks for the patch.

@Misterio77 Misterio77 merged commit 08a3de8 into Misterio77:master Nov 3, 2021
@dtolnay dtolnay deleted the fmt branch November 19, 2021 01:57
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.

2 participants