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

Triggered via push July 18, 2024 17:31
Status Success
Total duration 4m 40s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 22 warnings
this argument is passed by value, but not consumed in the function body: funds-manager/src/error.rs#L51
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
this argument is passed by value, but not consumed in the function body: funds-manager/src/error.rs#L46
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
this argument is passed by value, but not consumed in the function body: funds-manager/src/error.rs#L41
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
this argument is passed by value, but not consumed in the function body: funds-manager/src/error.rs#L36
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
this argument is passed by value, but not consumed in the function body: funds-manager/src/error.rs#L31
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
this argument is passed by value, but not consumed in the function body: funds-manager/src/error.rs#L26
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`
unused import: `AsyncConnection`: funds-manager/src/main.rs#L15
error: unused import: `AsyncConnection` --> funds-manager/src/main.rs:15:20 | 15 | use diesel_async::{AsyncConnection, AsyncPgConnection}; | ^^^^^^^^^^^^^^^
unused import: `AsyncPgConnection`: funds-manager/src/main.rs#L15
error: unused import: `AsyncPgConnection` --> funds-manager/src/main.rs:15:37 | 15 | use diesel_async::{AsyncConnection, AsyncPgConnection}; | ^^^^^^^^^^^^^^^^^
unused imports: `MakeTlsConnect`, `TlsConnect`: funds-manager/src/db/mod.rs#L7
error: unused imports: `MakeTlsConnect`, `TlsConnect` --> funds-manager/src/db/mod.rs:7:27 | 7 | use tokio_postgres::tls::{MakeTlsConnect, TlsConnect}; | ^^^^^^^^^^^^^^ ^^^^^^^^^^
unused import: `AsyncConnection`: funds-manager/src/db/mod.rs#L3
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)]`
cargo-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo-test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, arduino/setup-protoc@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
cargo-test
#[table_name] attribute form is deprecated
cargo-test
#[table_name] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[table_name] attribute form is deprecated
cargo-test
#[table_name] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated
cargo-test
#[sql_type] attribute form is deprecated