Skip to content

auth-server: Add management key and gate key management API #221

auth-server: Add management key and gate key management API

auth-server: Add management key and gate key management API #221

GitHub Actions / clippy failed Oct 24, 2024 in 1s

clippy

8 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 8
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 123 in price-reporter/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
   --> price-reporter/src/main.rs:94:1
    |
94  | / async fn init_default_price_streams(
95  | |     global_price_streams: &GlobalPriceStreams,
96  | |     config: ExchangeConnectionsConfig,
97  | | ) -> Result<(), ServerError> {
...   |
122 | |     Ok(())
123 | | }
    | |_^
    |
    = 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 19 in auth/auth-server/src/server/api_auth.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this argument is passed by value, but not consumed in the function body

error: this argument is passed by value, but not consumed in the function body
  --> auth/auth-server/src/server/api_auth.rs:19:15
   |
19 |         path: FullPath,
   |               ^^^^^^^^ help: consider taking a reference instead: `&FullPath`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
   = note: requested on the command line with `-D clippy::needless-pass-by-value`

Check failure on line 33 in auth/auth-server/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `filters::path::FullPath`

error: unused import: `filters::path::FullPath`
  --> auth/auth-server/src/main.rs:33:12
   |
33 | use warp::{filters::path::FullPath, Filter, Rejection, Reply};
   |            ^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 26 in auth/auth-server/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `serde::Deserialize`

error: unused import: `serde::Deserialize`
  --> auth/auth-server/src/main.rs:26:5
   |
26 | use serde::Deserialize;
   |     ^^^^^^^^^^^^^^^^^^

Check failure on line 23 in auth/auth-server/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `http::HeaderMap`

error: unused import: `http::HeaderMap`
  --> auth/auth-server/src/main.rs:23:5
   |
23 | use http::HeaderMap;
   |     ^^^^^^^^^^^^^^^

Check failure on line 21 in auth/auth-server/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `bytes::Bytes`

error: unused import: `bytes::Bytes`
  --> auth/auth-server/src/main.rs:21:5
   |
21 | use bytes::Bytes;
   |     ^^^^^^^^^^^^

Check failure on line 20 in auth/auth-server/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `CreateApiKeyRequest`

error: unused import: `CreateApiKeyRequest`
  --> auth/auth-server/src/main.rs:20:23
   |
20 | use auth_server_api::{CreateApiKeyRequest, API_KEYS_PATH};
   |                       ^^^^^^^^^^^^^^^^^^^

Check failure on line 7 in auth/auth-server/src/server/api_auth.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `serde::Serialize`

error: unused import: `serde::Serialize`
 --> auth/auth-server/src/server/api_auth.rs:7:5
  |
7 | use serde::Serialize;
  |     ^^^^^^^^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`