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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

neithernut
Copy link

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
Author

Fixes #305.

@schneiderfelipe
Copy link

@BurntSushi can we get this merged? ❤️

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