Skip to content

custom encode/decode #476

custom encode/decode

custom encode/decode #476

GitHub Actions / clippy failed Feb 28, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

multisig/tests/multisig_setup/mod.rs|115 col 18| warning: the loop variable i is only used to index oracles
--> multisig/tests/multisig_setup/mod.rs:115:18
|
115 | for i in 0..2 {
| ^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
= note: #[warn(clippy::needless_range_loop)] on by default
help: consider using an iterator
|
115 | for in oracles.iter().take(2) {
| ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
multisig/tests/multisig_setup/mod.rs|123 col 18| warning: the loop variable i is only used to index oracles
--> multisig/tests/multisig_setup/mod.rs:123:18
|
123 | for i in 0..2 {
| ^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
help: consider using an iterator
|
123 | for in oracles.iter().take(2) {
| ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

Filtered Findings (0)

Annotations

Check warning on line 115 in multisig/tests/multisig_setup/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] multisig/tests/multisig_setup/mod.rs#L115

warning: the loop variable `i` is only used to index `oracles`
   --> multisig/tests/multisig_setup/mod.rs:115:18
    |
115 |         for i in 0..2 {
    |                  ^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
    = note: `#[warn(clippy::needless_range_loop)]` on by default
help: consider using an iterator
    |
115 |         for <item> in oracles.iter().take(2) {
    |             ~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~
Raw output
multisig/tests/multisig_setup/mod.rs:115:18:w:warning: the loop variable `i` is only used to index `oracles`
   --> multisig/tests/multisig_setup/mod.rs:115:18
    |
115 |         for i in 0..2 {
    |                  ^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
    = note: `#[warn(clippy::needless_range_loop)]` on by default
help: consider using an iterator
    |
115 |         for <item> in oracles.iter().take(2) {
    |             ~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~


__END__

Check warning on line 123 in multisig/tests/multisig_setup/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] multisig/tests/multisig_setup/mod.rs#L123

warning: the loop variable `i` is only used to index `oracles`
   --> multisig/tests/multisig_setup/mod.rs:123:18
    |
123 |         for i in 0..2 {
    |                  ^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
help: consider using an iterator
    |
123 |         for <item> in oracles.iter().take(2) {
    |             ~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~
Raw output
multisig/tests/multisig_setup/mod.rs:123:18:w:warning: the loop variable `i` is only used to index `oracles`
   --> multisig/tests/multisig_setup/mod.rs:123:18
    |
123 |         for i in 0..2 {
    |                  ^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
help: consider using an iterator
    |
123 |         for <item> in oracles.iter().take(2) {
    |             ~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~


__END__