Skip to content

Wait for Account proofs blocks if they are not available yet #14154

Wait for Account proofs blocks if they are not available yet

Wait for Account proofs blocks if they are not available yet #14154

GitHub Actions / Clippy Report succeeded Nov 26, 2024 in 0s

Clippy Report

2 warnings

Details

Results

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

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check warning on line 98 in consensus/src/consensus/remote_data_store.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Report

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> consensus/src/consensus/remote_data_store.rs:98:49
   |
98 |         if let Ok(block) = blockchain.get_block(&block_hash, false) {
   |                                                 ^^^^^^^^^^^ help: change this to: `block_hash`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 80 in consensus/src/consensus/remote_data_store.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Report

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> consensus/src/consensus/remote_data_store.rs:80:78
   |
80 |             .filter(|event| std::future::ready(event.added_hashes().contains(&block_hash)))
   |                                                                              ^^^^^^^^^^^ help: change this to: `block_hash`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default