mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 23:07:55 +00:00
kata-types: Fix warning with decode_config(&value)
error: the borrowed expression implements the required traits --> kata-types/src/annotations/mod.rs:998:72 | 998 | if let Ok(b64_decoded) = base64::decode_config(&value, base64::STANDARD) { | ^^^^^^ help: change this to: `value` Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
@@ -995,7 +995,7 @@ impl Annotation {
|
||||
},
|
||||
KATA_ANNO_CFG_AGENT_POLICY => {
|
||||
// Base64 decode the annotation value
|
||||
if let Ok(b64_decoded) = base64::decode_config(&value, base64::STANDARD) {
|
||||
if let Ok(b64_decoded) = base64::decode_config(value, base64::STANDARD) {
|
||||
match String::from_utf8(b64_decoded) {
|
||||
Ok(policy) => ag.policy = policy,
|
||||
Err(_e) => {
|
||||
|
Reference in New Issue
Block a user