forked from DGNum/colmena
progress/plain: Fix label alignment
This commit is contained in:
parent
46090598eb
commit
b3016ad3a7
1 changed files with 5 additions and 2 deletions
|
@ -32,11 +32,15 @@ impl PlainOutput {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print(&self, line: Line) {
|
fn print(&mut self, line: Line) {
|
||||||
if line.noisy {
|
if line.noisy {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if line.label.len() > self.label_width {
|
||||||
|
self.label_width = line.label.len();
|
||||||
|
}
|
||||||
|
|
||||||
let label_style = match line.style {
|
let label_style = match line.style {
|
||||||
LineStyle::Normal => {
|
LineStyle::Normal => {
|
||||||
ConsoleStyle::new().bold()
|
ConsoleStyle::new().bold()
|
||||||
|
@ -82,7 +86,6 @@ impl ProgressOutput for PlainOutput {
|
||||||
let message = self.receiver.recv().await;
|
let message = self.receiver.recv().await;
|
||||||
|
|
||||||
if message.is_none() {
|
if message.is_none() {
|
||||||
log::info!("All senders dropped");
|
|
||||||
return Ok(self);
|
return Ok(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue