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