Skip to content

Fix warnings #4

@Teascade

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

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