From 5ffc14c6dd47660c8c5f61dcce8d2506da51e035 Mon Sep 17 00:00:00 2001 From: Marijn Schouten Date: Sat, 8 Feb 2025 14:14:09 +0100 Subject: 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 075efc2..9961b98 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -3146,7 +3146,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) => { -- cgit v1.1