mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
a1126352ec
commit
b766d4a53c
@@ -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, " ")?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user