Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaslyang authored and nicholaslyang committed Aug 9, 2023
1 parent b109bbc commit 5dc49b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/turborepo-ui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod log_replayer;

use std::{borrow::Cow, env, f64::consts::PI, io::IsTerminal, time::Duration};
use std::{borrow::Cow, env, f64::consts::PI, time::Duration};

use console::{Style, StyledObject};
use indicatif::{ProgressBar, ProgressStyle};
Expand Down
6 changes: 3 additions & 3 deletions crates/turborepo-ui/src/log_replayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl<D: Display + Clone, W: Write> PrefixedUI<D, W> {
pub fn output(&mut self, message: impl Display) -> Result<(), Error> {
writeln!(
self.output,
"{} {}",
"{}{}",
self.ui.apply(self.prefix.clone()),
message
)
Expand Down Expand Up @@ -84,8 +84,8 @@ mod tests {

assert_eq!(
String::from_utf8(output)?,
"\u{1b}[36m>\u{1b}[0m \n\u{1b}[36m>\u{1b}[0m one fish\n\u{1b}[36m>\u{1b}[0m two \
fish\n\u{1b}[36m>\u{1b}[0m red fish\n\u{1b}[36m>\u{1b}[0m blue fish\n"
"\u{1b}[36m>\u{1b}[0m\n\u{1b}[36m>\u{1b}[0mone fish\n\u{1b}[36m>\u{1b}[0mtwo \
fish\n\u{1b}[36m>\u{1b}[0mred fish\n\u{1b}[36m>\u{1b}[0mblue fish\n"
);

Ok(())
Expand Down

0 comments on commit 5dc49b9

Please sign in to comment.