Unified · Split
| @@ -77,16 +77,26 @@ pub mod pretty { · 76 unmodified lines | |||
| 77 | crate::shared::init_env_logger(false); | 77 | crate::shared::init_env_logger(false); |
| 78 | 78 | ||
| 79 | match (verbose, progress) { | 79 | match (verbose, progress) { |
| 80 | (false, false) => run(progress::DoOrDiscard::from(None), &mut stdout(), &mut stderr()), | 80 | (false, false) => { |
| 81 | let stdout = stdout(); | ||
| 82 | let mut stdout_lock = stdout.lock(); | ||
| 83 | let stderr = stderr(); | ||
| 84 | let mut stderr_lock = stderr.lock(); | ||
| 85 | run(progress::DoOrDiscard::from(None), &mut stdout_lock, &mut stderr_lock) | ||
| 86 | } | ||
| 81 | (true, false) => { | 87 | (true, false) => { |
| 82 | let progress = crate::shared::progress_tree(); | 88 | let progress = crate::shared::progress_tree(); |
| 83 | let sub_progress = progress.add_child(name); | 89 | let sub_progress = progress.add_child(name); |
| 84 | #[cfg(not(feature = "prodash-render-line"))] | 90 | #[cfg(not(feature = "prodash-render-line"))] |
| 85 | { | 91 | { |
| 92 | let stdout = stdout(); | ||
| 93 | let mut stdout_lock = stdout.lock(); | ||
| 94 | let stderr = stderr(); | ||
| 95 | let mut stderr_lock = stderr.lock(); | ||
| 86 | run( | 96 | run( |
| 87 | progress::DoOrDiscard::from(Some(sub_progress)), | 97 | progress::DoOrDiscard::from(Some(sub_progress)), |
| 88 | &mut stdout(), | 98 | &mut stdout_lock, |
| 89 | &mut stderr(), | 99 | &mut stderr_lock, |
| 90 | ) | 100 | ) |
| 91 | } | 101 | } |
| 92 | #[cfg(feature = "prodash-render-line")] | 102 | #[cfg(feature = "prodash-render-line")] |