bump to v0.10.1 #45
GitHub Actions / clippy
succeeded
Dec 23, 2023 in 1s
clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.0-nightly (d6d7a9386 2023-12-22)
- cargo 1.77.0-nightly (1a2666ddd 2023-12-17)
- clippy 0.1.76 (d6d7a93 2023-12-22)
Annotations
Check warning on line 211 in src/message.rs
github-actions / clippy
manual `RangeInclusive::contains` implementation
warning: manual `RangeInclusive::contains` implementation
--> src/message.rs:211:64
|
211 | return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '-' || c == '_');
| ^^^^^^^^^^^^^^^^^^^^^^ help: use: `('0'..='9').contains(&c)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
Check warning on line 211 in src/message.rs
github-actions / clippy
manual `RangeInclusive::contains` implementation
warning: manual `RangeInclusive::contains` implementation
--> src/message.rs:211:12
|
211 | return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '-' || c == '_');
| ^^^^^^^^^^^^^^^^^^^^^^ help: use: `('A'..='Z').contains(&c)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
= note: `#[warn(clippy::manual_range_contains)]` on by default
Check warning on line 211 in src/message.rs
github-actions / clippy
unneeded `return` statement
warning: unneeded `return` statement
--> src/message.rs:211:5
|
211 | return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '-' || c == '_');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
211 - return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '-' || c == '_');
211 + (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '-' || c == '_')
|
Check warning on line 5 in src/vapid/mod.rs
github-actions / clippy
unused import: `self::signer::Claims`
warning: unused import: `self::signer::Claims`
--> src/vapid/mod.rs:5:9
|
5 | pub use self::signer::Claims;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Loading