Skip to content

clippy fix.

clippy fix. #1644

GitHub Actions / clippy succeeded Jul 17, 2024 in 1s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.81.0-nightly (032be6f7b 2024-07-16)
  • cargo 1.81.0-nightly (154fdac39 2024-07-07)
  • clippy 0.1.81 (032be6f 2024-07-16)

Annotations

Check warning on line 688 in http/src/h2/proto/hpack/encoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

explicit call to `.into_iter()` in function argument accepting `IntoIterator`

warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
   --> http/src/h2/proto/hpack/encoder.rs:688:18
    |
688 |         e.encode(hdrs.into_iter(), &mut dst);
    |                  ^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `hdrs`
    |
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
   --> http/src/h2/proto/hpack/encoder.rs:68:12
    |
68  |         I: IntoIterator<Item = Header<Option<HeaderName>>>,
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `#[warn(clippy::useless_conversion)]` on by default