Skip to content

compliance: compliance-server: db: Define migrations and query db #14

compliance: compliance-server: db: Define migrations and query db

compliance: compliance-server: db: Define migrations and query db #14

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

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
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 106 in compliance/compliance-server/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused `async` for function with no await statements

error: unused `async` for function with no await statements
   --> compliance/compliance-server/src/main.rs:92:1
    |
92  | / async fn check_wallet_compliance(
93  | |     wallet_address: String,
94  | |     chainalysis_api_key: &str,
95  | |     pool: ConnectionPool,
...   |
105 | |     Ok(ComplianceStatus::Compliant)
106 | | }
    | |_^
    |
    = help: consider removing the `async` from this function
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
    = note: requested on the command line with `-D clippy::unused-async`

Check failure on line 94 in compliance/compliance-server/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `chainalysis_api_key`

error: unused variable: `chainalysis_api_key`
  --> compliance/compliance-server/src/main.rs:94:5
   |
94 |     chainalysis_api_key: &str,
   |     ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chainalysis_api_key`
   |
   = note: `-D unused-variables` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_variables)]`