Skip to content

Commit

Permalink
fix windows build with newer indicatif
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Oct 23, 2023
1 parent f5b5aea commit d48811e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ fn record_samples(pid: remoteprocess::Pid, config: &Config) -> Result<(), Error>
// my system. Replace unicode spinners with just how many seconds have elapsed
#[cfg(windows)]
progress.set_style(
indicatif::ProgressStyle::default_spinner().template("[{elapsed}] {msg}"),
indicatif::ProgressStyle::default_spinner()
.template("[{elapsed}] {msg}")
.unwrap(),
);
progress
}
Expand Down

0 comments on commit d48811e

Please sign in to comment.