Update dependencies #40
Annotations
3 warnings
|
hiding a lifetime that's elided elsewhere is confusing:
src/errors/codes.rs#L128
warning: hiding a lifetime that's elided elsewhere is confusing
--> src/errors/codes.rs:128:23
|
128 | pub fn extra_info(&self) -> Option<Cow<str>> {
| ^^^^^ ^^^^^^^^ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
128 | pub fn extra_info(&self) -> Option<Cow<'_, str>> {
| +++
|
|
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.92.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.92.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 ~ }
|
|