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

Rust 1.51.0 warning: panic message is not a string literal #27

Closed
easbar opened this issue Apr 25, 2021 · 1 comment
Closed

Rust 1.51.0 warning: panic message is not a string literal #27

easbar opened this issue Apr 25, 2021 · 1 comment

Comments

@easbar
Copy link
Owner

easbar commented Apr 25, 2021

Using Rust 1.51.0 I get:

warning: panic message is not a string literal
   --> src/preparation_graph.rs:150:13
    |
150 | /             format!(
151 | |                 "invalid node id {}, must be in [0, {}[",
152 | |                 node, self.num_nodes
153 | |             )
    | |_____________^
    |
    = note: `#[warn(non_fmt_panic)]` on by default
    = note: this is no longer accepted in Rust 2021
    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
@easbar
Copy link
Owner Author

easbar commented Apr 26, 2021

Fixed via #28

@easbar easbar closed this as completed Apr 26, 2021
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

No branches or pull requests

1 participant