Skip to content

Mempool scan fix

Mempool scan fix #752

GitHub Actions / clippy failed Sep 6, 2024 in 0s

clippy

7 errors

Details

Results

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

Versions

  • rustc 1.79.0-nightly (ef8b9dcf2 2024-04-24)
  • cargo 1.79.0-nightly (c93926759 2024-04-23)
  • clippy 0.1.79 (ef8b9dc 2024-04-24)

Annotations

Check failure on line 264 in src/bitcoin/relayer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `error::Error`

error: useless conversion to the same type: `error::Error`
   --> src/bitcoin/relayer.rs:264:63
    |
264 | ...                   .map_err(|e| warp::reject::custom(Error::from(e)))?;
    |                                                         ^^^^^^^^^^^^^^ help: consider removing `Error::from()`: `e`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `-D clippy::useless-conversion` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::useless_conversion)]`

Check failure on line 840 in src/bitcoin/relayer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `encode`

error: unused variable: `encode`
   --> src/bitcoin/relayer.rs:840:17
    |
840 |             let encode: usize = output
    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_encode`

Check failure on line 364 in src/bitcoin/relayer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

error: variable does not need to be mutable
   --> src/bitcoin/relayer.rs:364:13
    |
364 |         let mut seen_mempool_txids: HashSet<Txid> = HashSet::new();
    |             ----^^^^^^^^^^^^^^^^^^
    |             |
    |             help: remove this `mut`
    |
    = note: `-D unused-mut` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_mut)]`

Check failure on line 364 in src/bitcoin/relayer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `seen_mempool_txids`

error: unused variable: `seen_mempool_txids`
   --> src/bitcoin/relayer.rs:364:17
    |
364 |         let mut seen_mempool_txids: HashSet<Txid> = HashSet::new();
    |                 ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seen_mempool_txids`
    |
    = note: `-D unused-variables` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_variables)]`

Check failure on line 1 in src/bitcoin/relayer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

crate-level attribute should be in the root module

error: crate-level attribute should be in the root module
 --> src/bitcoin/relayer.rs:1:1
  |
1 | #![feature(async_closure)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `-D unused-attributes` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_attributes)]`

Check failure on line 27 in src/bitcoin/relayer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `tokio::sync::mpsc::Receiver`

error: unused import: `tokio::sync::mpsc::Receiver`
  --> src/bitcoin/relayer.rs:27:5
   |
27 | use tokio::sync::mpsc::Receiver;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 14 in src/bitcoin/relayer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `bitcoin::TxOut`

error: unused import: `bitcoin::TxOut`
  --> src/bitcoin/relayer.rs:14:5
   |
14 | use bitcoin::TxOut;
   |     ^^^^^^^^^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`