hoist item declarations above statements

This commit is contained in:
2026-09-21 01:17:28 +03:00
parent 8972592b8d
commit 72f24b7369
3 changed files with 33 additions and 25 deletions
+1 -1
View File
@@ -1211,8 +1211,8 @@ fn run_impl(
// Stderr reader: collect bytes for diagnostics. No more frame regex.
let mut stderr_handle: Option<thread::JoinHandle<Vec<u8>>> = stderr.map(move |serr| {
thread::spawn(move || {
let mut collected = Vec::new();
use std::io::Read;
let mut collected = Vec::new();
let mut s = serr;
drop(s.read_to_end(&mut collected));
collected