Skip to content

Fix multi block argument and add some unit tests (#14) #66

Fix multi block argument and add some unit tests (#14)

Fix multi block argument and add some unit tests (#14) #66

GitHub Actions / clippy succeeded Aug 8, 2023 in 0s

clippy

4 warnings

Details

Results

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

Versions

  • rustc 1.73.0-nightly (03a119b0b 2023-08-07)
  • cargo 1.73.0-nightly (d78bbf4bd 2023-08-03)
  • clippy 0.1.73 (03a119b 2023-08-07)

Annotations

Check warning on line 17 in crates/cli/src/parse/source.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant closure

warning: redundant closure
  --> crates/cli/src/parse/source.rs:17:57
   |
17 |     let chain_id = provider.get_chainid().await.map_err(|e| ParseError::ProviderError(e))?.as_u64();
   |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ParseError::ProviderError`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
   = note: `#[warn(clippy::redundant_closure)]` on by default

Check warning on line 68 in crates/cli/src/parse/blocks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `parts.get(0)`

warning: accessing first element with `parts.get(0)`
  --> crates/cli/src/parse/blocks.rs:68:31
   |
68 |             let first_input = parts.get(0).ok_or_else(|| {
   |                               ^^^^^^^^^^^^ help: try: `parts.first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
   = note: `#[warn(clippy::get_first)]` on by default

Check warning on line 17 in crates/cli/src/parse/source.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant closure

warning: redundant closure
  --> crates/cli/src/parse/source.rs:17:57
   |
17 |     let chain_id = provider.get_chainid().await.map_err(|e| ParseError::ProviderError(e))?.as_u64();
   |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ParseError::ProviderError`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
   = note: `#[warn(clippy::redundant_closure)]` on by default

Check warning on line 68 in crates/cli/src/parse/blocks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `parts.get(0)`

warning: accessing first element with `parts.get(0)`
  --> crates/cli/src/parse/blocks.rs:68:31
   |
68 |             let first_input = parts.get(0).ok_or_else(|| {
   |                               ^^^^^^^^^^^^ help: try: `parts.first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
   = note: `#[warn(clippy::get_first)]` on by default