Skip to content

Fix warnings #4

Description

@Teascade

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),
   |                   ^^^^^^^^^^^^^^^^^^^^^^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions