small fix for last_in_row

This commit is contained in:
Terts Diepraam
2023-08-12 18:32:35 +02:00
parent 7a5e1e1ba2
commit 6be5eba7f1
+2 -3
View File
@@ -490,12 +490,11 @@ impl fmt::Display for Display<'_> {
f.write_str(contents)?;
}
};
if last_in_row {
f.write_str("\n")?;
} else {
if !last_in_row {
f.write_str(&separator)?;
}
}
f.write_str("\n")?;
}
Ok(())