From 280b8509d1450df9c3c30e014ea6c0a4c1c0c731 Mon Sep 17 00:00:00 2001 From: Steffen Eiden Date: Tue, 7 Apr 2026 13:58:39 +0200 Subject: [PATCH] pvimg: Remove unnecessary references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Referencing here is superfluous and makes clippy sad. Fixes: 87966251c4b0 ("pvimg: info: Improve JSON output") Reviewed-by: Jan Höppner Signed-off-by: Steffen Eiden Signed-off-by: Jan Höppner --- rust/pvimg/src/pv_utils/serializing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/pvimg/src/pv_utils/serializing.rs b/rust/pvimg/src/pv_utils/serializing.rs index 12ff3008..c94b0b9e 100644 --- a/rust/pvimg/src/pv_utils/serializing.rs +++ b/rust/pvimg/src/pv_utils/serializing.rs @@ -98,7 +98,7 @@ pub mod serde_base64 { D: Deserializer<'de>, { let s = String::deserialize(deserializer)?; - BASE64_STANDARD.decode(&s).map_err(serde::de::Error::custom) + BASE64_STANDARD.decode(s).map_err(serde::de::Error::custom) } } @@ -124,7 +124,7 @@ pub mod serde_base64_array { { let s = String::deserialize(deserializer)?; let decoded = BASE64_STANDARD - .decode(&s) + .decode(s) .map_err(serde::de::Error::custom)?; try_copy_slice_to_array(&decoded).map_err(serde::de::Error::custom) }