mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
pvimg: Remove unnecessary references
Referencing here is superfluous and makes clippy sad.
Fixes: 87966251c4 ("pvimg: info: Improve JSON output")
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
0f56416d82
commit
280b8509d1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user