Skip to content

Fix/rpcparseerror (#24) #65

Fix/rpcparseerror (#24)

Fix/rpcparseerror (#24) #65

GitHub Actions / clippy succeeded Aug 8, 2023 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.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 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