clippy
9 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 9 |
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
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 124 in auth/auth-server/src/server/mod.rs
github-actions / clippy
unused `async` for function with no await statements
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`
Check failure on line 85 in auth/auth-server/src/main.rs
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/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
Check failure on line 60 in auth/auth-server/src/error.rs
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: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
Check failure on line 55 in auth/auth-server/src/error.rs
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: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
Check failure on line 50 in auth/auth-server/src/error.rs
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: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
Check failure on line 45 in auth/auth-server/src/error.rs
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: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
Check failure on line 40 in auth/auth-server/src/error.rs
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: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
Check failure on line 35 in auth/auth-server/src/error.rs
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: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`