Skip to content

Catch HTTP 411 link error #1081

Catch HTTP 411 link error

Catch HTTP 411 link error #1081

GitHub Actions / clippy succeeded Dec 18, 2024 in 0s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check warning on line 204 in src/websocket/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

length comparison to zero

warning: length comparison to zero
   --> src/websocket/mod.rs:204:24
    |
204 |                     if self.outgoing_keep_alive_set.len() > 0 {
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!self.outgoing_keep_alive_set.is_empty()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
    = note: `#[warn(clippy::len_zero)]` on by default

Check warning on line 10 in src/digeststream.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'r

warning: the following explicit lifetimes could be elided: 'r
  --> src/digeststream.rs:10:6
   |
10 | impl<'r, R: Read + Seek> Read for DigestingReader<'r, R> {
   |      ^^                                           ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
   |
10 - impl<'r, R: Read + Seek> Read for DigestingReader<'r, R> {
10 + impl<R: Read + Seek> Read for DigestingReader<'_, R> {
   |