Skip to content

funds-manager: Use diesel-async and add warp endpoints #30

funds-manager: Use diesel-async and add warp endpoints

funds-manager: Use diesel-async and add warp endpoints #30

GitHub Actions / clippy failed Jul 18, 2024 in 1s

clippy

10 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 10
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 51 in funds-manager/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
  --> funds-manager/src/error.rs:51:37
   |
51 |     pub fn custom<T: ToString>(msg: T) -> FundsManagerError {
   |                                     ^ 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 46 in funds-manager/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
  --> funds-manager/src/error.rs:46:46
   |
46 |     pub fn secrets_manager<T: ToString>(msg: T) -> FundsManagerError {
   |                                              ^ 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 41 in funds-manager/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
  --> funds-manager/src/error.rs:41:36
   |
41 |     pub fn parse<T: ToString>(msg: T) -> FundsManagerError {
   |                                    ^ 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 36 in funds-manager/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
  --> funds-manager/src/error.rs:36:35
   |
36 |     pub fn http<T: ToString>(msg: T) -> FundsManagerError {
   |                                   ^ 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 31 in funds-manager/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
  --> funds-manager/src/error.rs:31:33
   |
31 |     pub fn db<T: ToString>(msg: T) -> FundsManagerError {
   |                                 ^ 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 26 in funds-manager/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
  --> funds-manager/src/error.rs:26:39
   |
26 |     pub fn arbitrum<T: ToString>(msg: T) -> FundsManagerError {
   |                                       ^ 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`

Check failure on line 15 in funds-manager/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `AsyncConnection`

error: unused import: `AsyncConnection`
  --> funds-manager/src/main.rs:15:20
   |
15 | use diesel_async::{AsyncConnection, AsyncPgConnection};
   |                    ^^^^^^^^^^^^^^^

Check failure on line 15 in funds-manager/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `AsyncPgConnection`

error: unused import: `AsyncPgConnection`
  --> funds-manager/src/main.rs:15:37
   |
15 | use diesel_async::{AsyncConnection, AsyncPgConnection};
   |                                     ^^^^^^^^^^^^^^^^^

Check failure on line 7 in funds-manager/src/db/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `MakeTlsConnect`, `TlsConnect`

error: unused imports: `MakeTlsConnect`, `TlsConnect`
 --> funds-manager/src/db/mod.rs:7:27
  |
7 | use tokio_postgres::tls::{MakeTlsConnect, TlsConnect};
  |                           ^^^^^^^^^^^^^^  ^^^^^^^^^^

Check failure on line 3 in funds-manager/src/db/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `AsyncConnection`

error: unused import: `AsyncConnection`
 --> funds-manager/src/db/mod.rs:3:20
  |
3 | use diesel_async::{AsyncConnection, AsyncPgConnection};
  |                    ^^^^^^^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`