Skip to content

Commit 8eb1f49

Browse files
authored
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
1 parent c4fd8ca commit 8eb1f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl SpanSet {
359359

360360
while line <= end_line {
361361
if last_b == linespan.char_st {
362-
out.push_str(&format!(" {:3.} ", line));
362+
out.push_str(&format!(" {:3} ", line));
363363
}
364364

365365
if cur > spans.len() || last_b < curspan.char_st {

0 commit comments

Comments
 (0)