Update dependencies to fix CVE #42
Annotations
2 warnings
|
this `if` statement can be collapsed:
src/routes/version.rs#L71
warning: this `if` statement can be collapsed
--> src/routes/version.rs:71:5
|
71 | / if updater_platform.contains('-') {
72 | | if let Some((platform, arch)) = updater_platform.split_once('_') {
73 | | updater_platform = format!(
74 | | "{}_{}",
... |
81 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#collapsible_if
help: collapse nested if block
|
71 ~ if updater_platform.contains('-')
72 ~ && let Some((platform, arch)) = updater_platform.split_once('_') {
73 | updater_platform = format!(
...
79 | );
80 ~ }
|
|
|
this `if` statement can be collapsed:
src/routes/players.rs#L50
warning: this `if` statement can be collapsed
--> src/routes/players.rs:50:5
|
50 | / if !config.player_allow_non_ascii {
51 | | if let Some(char) = nickname
52 | | .chars()
53 | | .find(|&x| !x.is_ascii_alphanumeric() && x != ' ' && x != '_')
... |
60 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
50 ~ if !config.player_allow_non_ascii
51 ~ && let Some(char) = nickname
52 | .chars()
...
58 | ));
59 ~ }
|
|