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:
Alex Lyn
2025-09-15 11:45:34 +08:00
parent 7d231c2c21
commit 442f94be69

View File

@@ -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) => {