This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
fix(deps): update rust crate serde to 1.0.183 #480
testing.yml
on: pull_request
Linting and Testing
17m 31s
Annotations
12 warnings
the borrowed expression implements the required traits:
src/main.rs#L150
warning: the borrowed expression implements the required traits
--> src/main.rs:150:36
|
150 | base64::encode(&format!("{}:{}", username, password)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}:{}", username, password)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
use of `.unwrap_or_else(..)` to construct default value:
src/repository/kubernetes_secret.rs#L46
warning: use of `.unwrap_or_else(..)` to construct default value
--> src/repository/kubernetes_secret.rs:46:37
|
46 | let current_namespace = config
| _____________________________________^
47 | | .contexts
48 | | .iter()
49 | | .find(|&ctx| ctx.name == *current_context_name)
... |
53 | | .namespace
54 | | .unwrap_or_else(|| "".to_string());
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default
= note: `#[warn(clippy::unwrap_or_else_default)]` on by default
help: try
|
46 ~ let current_namespace = config
47 + .contexts
48 + .iter()
49 + .find(|&ctx| ctx.name == *current_context_name)
50 + .expect("No context with name found.")
51 + .clone()
52 + .context
53 ~ .namespace.unwrap_or_default();
|
|
use of deprecated function `base64::decode`: Use Engine::decode:
src/main.rs#L174
warning: use of deprecated function `base64::decode`: Use Engine::decode
--> src/main.rs:174:31
|
174 | let payload = base64::decode(auth_header.replace("Basic ", "")).map_err(|e| {
| ^^^^^^
|
use of deprecated function `base64::encode`: Use Engine::encode:
src/main.rs#L150
warning: use of deprecated function `base64::encode`: Use Engine::encode
--> src/main.rs:150:29
|
150 | base64::encode(&format!("{}:{}", username, password)),
| ^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
Linting and Testing
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1, actions-rs/toolchain@v1, 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/
|
Linting and Testing:
src/main.rs#L150
use of deprecated function `base64::encode`: Use Engine::encode
|
Linting and Testing:
src/main.rs#L174
use of deprecated function `base64::decode`: Use Engine::decode
|
Linting and Testing
`k8s-basic-auth-translator` (bin "k8s-basic-auth-translator") generated 2 warnings
|
Linting and Testing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Linting and Testing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Linting and Testing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Linting and Testing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|