Skip to content

fee-sweeper: Ingest latest changes from base repo #3

fee-sweeper: Ingest latest changes from base repo

fee-sweeper: Ingest latest changes from base repo #3

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

clippy

4 errors

Details

Results

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

Versions

  • rustc 1.78.0-nightly (3cbb93223 2024-03-13)
  • cargo 1.78.0-nightly (7065f0ef4 2024-03-12)
  • clippy 0.1.78 (3cbb932 2024-03-13)

Annotations

Check failure on line 232 in fee-sweeper/src/relayer_client.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `build_auth_headers` is never used

error: function `build_auth_headers` is never used
   --> fee-sweeper/src/relayer_client.rs:232:4
    |
232 | fn build_auth_headers(key: &SecretSigningKey, req_bytes: &[u8]) -> Result<HeaderMap, String> {
    |    ^^^^^^^^^^^^^^^^^^

Check failure on line 96 in fee-sweeper/src/relayer_client.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods `post_relayer_with_auth` and `get_relayer_with_auth` are never used

error: methods `post_relayer_with_auth` and `get_relayer_with_auth` are never used
   --> fee-sweeper/src/relayer_client.rs:96:14
    |
37  | impl RelayerClient {
    | ------------------ methods in this implementation
...
96  |     async fn post_relayer_with_auth<Req, Resp>(
    |              ^^^^^^^^^^^^^^^^^^^^^^
...
153 |     async fn get_relayer_with_auth<Resp>(
    |              ^^^^^^^^^^^^^^^^^^^^^

Check failure on line 27 in fee-sweeper/src/relayer_client.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `SIG_EXPIRATION_BUFFER_MS` is never used

error: constant `SIG_EXPIRATION_BUFFER_MS` is never used
  --> fee-sweeper/src/relayer_client.rs:27:7
   |
27 | const SIG_EXPIRATION_BUFFER_MS: u64 = 5000;
   |       ^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 53 in fee-sweeper/src/indexer/queries.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

fields `tx_hash` and `value` are never read

error: fields `tx_hash` and `value` are never read
  --> fee-sweeper/src/indexer/queries.rs:53:9
   |
50 | pub(crate) struct FeeValue {
   |                   -------- fields in this struct
...
53 |     pub tx_hash: String,
   |         ^^^^^^^
...
59 |     pub value: BigDecimal,
   |         ^^^^^
   |
   = note: `FeeValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`