Skip to content

Allow selecting transactions by index #2651

Allow selecting transactions by index

Allow selecting transactions by index #2651

GitHub Actions / Clippy Results for the Rust Core failed Aug 17, 2023 in 0s

Clippy Results for the Rust Core

1 error

Details

Results

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

Versions

  • rustc 1.72.0-beta.8 (598a0a3cb 2023-08-12)
  • cargo 1.72.0-beta.8 (44b6be4bd 2023-08-03)
  • clippy 0.1.72 (598a0a3 2023-08-12)

Annotations

Check failure on line 770 in cli/src/command/account.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Results for the Rust Core

called `skip(..).next()` on an iterator

error: called `skip(..).next()` on an iterator
   --> cli/src/command/account.rs:770:37
    |
770 |             transactions.into_iter().skip(index).next()
    |                                     ^^^^^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(index)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
    = note: `-D clippy::iter-skip-next` implied by `-D warnings`