auth: auth-server: Define key management API #207
Annotations
5 errors and 22 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`
|
this argument is passed by value, but not consumed in the function body:
auth/auth-server/src/error.rs#L33
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
|
this argument is passed by value, but not consumed in the function body:
auth/auth-server/src/error.rs#L28
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
|
this argument is passed by value, but not consumed in the function body:
auth/auth-server/src/error.rs#L23
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`
|
unused doc comment:
auth/auth-server/src/server/helpers.rs#L70
error: unused doc comment
--> auth/auth-server/src/server/helpers.rs:70:9
|
70 | /// Generate a key and print the base64 encoded string
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 | let key = Aes128Gcm::generate_key(&mut thread_rng());
| ----------------------------------------------------- rustdoc does not generate documentation for statements
|
= help: use `//` for a plain comment
= note: `-D unused-doc-comments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_doc_comments)]`
|
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 use a deprecated Node.js version 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
|