Skip to content

Commit

Permalink
subscriber: fix missing space issue (#480)
Browse files Browse the repository at this point in the history
Closes #474
  • Loading branch information
yaahc authored and hawkw committed Dec 20, 2019
1 parent e930f05 commit d134675
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tracing-subscriber/src/fmt/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ mod test {
}

let make_writer = || MockWriter::new(&BUF);
let expected = "\u{1b}[2mfake time\u{1b}[0m\u{1b}[32m INFO\u{1b}[0m tracing_subscriber::fmt::format::test: some ansi test\n";
let expected = "\u{1b}[2mfake time\u{1b}[0m \u{1b}[32m INFO\u{1b}[0m tracing_subscriber::fmt::format::test: some ansi test\n";
test_ansi(make_writer, expected, true, &BUF);
}

Expand Down
2 changes: 1 addition & 1 deletion tracing-subscriber/src/fmt/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ where
write!(writer, "{}", style.suffix())?;
} else {
timer.format_time(writer)?;
write!(writer, " ")?;
}
writer.write_char(' ')?;
Ok(())
}

Expand Down

0 comments on commit d134675

Please sign in to comment.