Skip to content

Commit

Permalink
chore: fix using write!() with a format string that ends in a singl…
Browse files Browse the repository at this point in the history
…e newline
  • Loading branch information
Rustin170506 committed Apr 15, 2024
1 parent ed4db0c commit f818034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console-subscriber/tests/support/subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl fmt::Display for TestFailure {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "Task validation failed:\n")?;
for failure in &self.failures {
write!(f, " - {failure}\n")?;
writeln!(f, " - {failure}")?;
}
Ok(())
}
Expand Down

0 comments on commit f818034

Please sign in to comment.