Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove empty format precision specifier #16

Open
wants to merge 1 commit into
base: no-gods-no-
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
hkBst authored Feb 8, 2025
commit 1f69d2eeeb2565be917bee550d8252f98f46210c
2 changes: 1 addition & 1 deletion src/armv8/a64.rs
Original file line number Diff line number Diff line change
@@ -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) => {