-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Milestone
Description
Currently when building the project, there are unnecessary warnings that could easily be fixed
warning: panic message is not a string literal
--> src/main.rs:31:26
|
31 | Err(e) => panic!(e),
| ^
|
= note: `#[warn(non_fmt_panic)]` on by default
= note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
|
31 | Err(e) => panic!("{}", e),
| ^^^^^
help: or use std::panic::panic_any instead
|
31 | Err(e) => std::panic::panic_any(e),
| ^^^^^^^^^^^^^^^^^^^^^^
Metadata
Metadata
Assignees
Labels
No labels