Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
GitHub Actions / clippy succeeded Nov 24, 2023 in 0s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.74.0 (79e9716c9 2023-11-13)
  • cargo 1.74.0 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (79e9716 2023-11-13)

Annotations

Check warning on line 114 in src/routes/v2/version_creation.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

you seem to be trying to use `match` for an equality check. Consider using `if`

warning: you seem to be trying to use `match` for an equality check. Consider using `if`
   --> src/routes/v2/version_creation.rs:107:21
    |
107 | /                     match ext {
108 | |                         "mrpack" => {
109 | |                             project_type = Some("modpack");
110 | |                             break;
...   |
113 | |                         _ => {}
114 | |                     }
    | |_____________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
    = note: `#[warn(clippy::single_match)]` on by default
help: try
    |
107 ~                     if ext == "mrpack" {
108 +                         project_type = Some("modpack");
109 +                         break;
110 +                     }
    |