Skip to content

auth: auth-server: Define key management API

Sign in for the full log view
GitHub Actions / clippy failed Oct 22, 2024 in 1s

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 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 33 in auth/auth-server/src/error.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/error.rs:33:41
   |
33 |     pub fn decryption<T: ToString>(msg: T) -> Self {
   |                                         ^ help: consider taking a reference instead: `&T`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 28 in auth/auth-server/src/error.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/error.rs:28:41
   |
28 |     pub fn encryption<T: ToString>(msg: T) -> Self {
   |                                         ^ help: consider taking a reference instead: `&T`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

Check failure on line 23 in auth/auth-server/src/error.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/error.rs:23:33
   |
23 |     pub fn db<T: ToString>(msg: T) -> Self {
   |                                 ^ help: consider taking a reference instead: `&T`
   |
   = 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`