rust: Apply clippy fixes to format strings

Makes the code easier to read.

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2025-10-28 15:29:16 +01:00
committed by Jan Höppner
parent a1126352ec
commit b766d4a53c
13 changed files with 31 additions and 41 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ impl Display for HexSlice<'_> {
if f.sign_minus() && f.alternate() {
write!(f, "0x")?;
}
write!(f, "{:0>2x}", byte)?;
write!(f, "{byte:0>2x}")?;
if f.sign_minus() {
write!(f, " ")?;
}