Skip to content

auth-server: Use admin auth to proxy relayer requests #216

auth-server: Use admin auth to proxy relayer requests

auth-server: Use admin auth to proxy relayer requests #216

Triggered via push October 23, 2024 21:10
Status Failure
Total duration 3m 9s
Artifacts

clippy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
unused `async` for function with no await statements: price-reporter/src/main.rs#L94
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`
unused `async` for function with no await statements: auth/auth-server/src/server/mod.rs#L114
error: unused `async` for function with no await statements --> auth/auth-server/src/server/mod.rs:114:5 | 114 | / pub async fn admin_authenticate( 115 | | &self, 116 | | path: &str, 117 | | headers: &mut HeaderMap, ... | 123 | | Ok(()) 124 | | } | |_____^ | = 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`
this argument is passed by value, but not consumed in the function body: auth/auth-server/src/main.rs#L85
error: this argument is passed by value, but not consumed in the function body --> auth/auth-server/src/main.rs:85:39 | 85 | pub fn internal<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
this argument is passed by value, but not consumed in the function body: auth/auth-server/src/error.rs#L60
error: this argument is passed by value, but not consumed in the function body --> auth/auth-server/src/error.rs:60:43 | 60 | pub fn unauthorized<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
this argument is passed by value, but not consumed in the function body: auth/auth-server/src/error.rs#L55
error: this argument is passed by value, but not consumed in the function body --> auth/auth-server/src/error.rs:55:36 | 55 | pub fn setup<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
this argument is passed by value, but not consumed in the function body: auth/auth-server/src/error.rs#L50
error: this argument is passed by value, but not consumed in the function body --> auth/auth-server/src/error.rs:50:36 | 50 | pub fn serde<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
this argument is passed by value, but not consumed in the function body: auth/auth-server/src/error.rs#L45
error: this argument is passed by value, but not consumed in the function body --> auth/auth-server/src/error.rs:45:41 | 45 | 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
this argument is passed by value, but not consumed in the function body: auth/auth-server/src/error.rs#L40
error: this argument is passed by value, but not consumed in the function body --> auth/auth-server/src/error.rs:40:41 | 40 | 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
this argument is passed by value, but not consumed in the function body: auth/auth-server/src/error.rs#L35
error: this argument is passed by value, but not consumed in the function body --> auth/auth-server/src/error.rs:35:33 | 35 | 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`
clippy-check
Clippy had exited with the 101 exit code
clippy-check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy-check
The following actions use a deprecated Node.js version and will be forced to run on node20: arduino/setup-protoc@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/