Skip to content

Show HTTP 400 body also if not structured like ErrorInfo (#54) #44

Show HTTP 400 body also if not structured like ErrorInfo (#54)

Show HTTP 400 body also if not structured like ErrorInfo (#54) #44

GitHub Actions / clippy succeeded Dec 23, 2023 in 1s

clippy

5 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 5
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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions github-actions / clippy

manual `RangeInclusive::contains` implementation

warning: manual `RangeInclusive::contains` implementation
   --> src/message.rs:211:38
    |
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

Check warning on line 211 in src/message.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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