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

Shut up non_fmt_panic warning #284

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

neithernut
Copy link
Contributor

Like a few other macros, panic! accepts a format string and arguments.
The format string is meant to be static and calling it with a message string will generate a warning.
Currently, the warning also indicates that rustc will generate an error instead in the near future.

Like a few other macros, `panic!` accepts a format string and arguments.
The format string is meant to be static and calling it with a message
string will generate a warning. Currently, the warning also indicates
that `rustc` will generate an error instead in the near future.
The `panic!` matro itself does take a foramt string. In fact, the
redundant format generated a warning.
@neithernut
Copy link
Contributor Author

Fixes #305.

@schneiderfelipe
Copy link
Contributor

@BurntSushi can we get this merged? ❤️

@jhpratt jhpratt merged commit 88f1eca into BurntSushi:master Mar 5, 2025
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.

3 participants