From 1f69d2eeeb2565be917bee550d8252f98f46210c Mon Sep 17 00:00:00 2001 From: Marijn Schouten Date: Sat, 8 Feb 2025 14:14:09 +0100 Subject: [PATCH] Remove empty format precision specifier A format precision specifier consisting of a dot and no number actually does nothing and has no specified meaning. Currently this is silently ignored, but it may turn into a warning or error. See rust-lang/rust#131159 and rust-lang/rust#136638 --- src/armv8/a64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index f60b87a..6069996 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -3058,7 +3058,7 @@ impl Display for Operand { if *d as i64 as f64 == *d { write!(fmt, "#{:0.1}", d) } else { - write!(fmt, "#{:0.}", d) + write!(fmt, "#{:0}", d) } }, Operand::Imm16(i) => {