From 96aa7e23766ffd038a43638ab0b60d04942f0430 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 23 Jun 2026 21:03:35 +0800 Subject: Parallelize markdown code block verification --- dev_tools/src/verify.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dev_tools/src/verify.rs') diff --git a/dev_tools/src/verify.rs b/dev_tools/src/verify.rs index 319a38a..06db1b2 100644 --- a/dev_tools/src/verify.rs +++ b/dev_tools/src/verify.rs @@ -1,4 +1,3 @@ -use std::io::Write; use std::path::Path; use crate::println_cargo_style; @@ -293,7 +292,7 @@ pub fn build_block( Err(e) => return (false, format!("spawn: {e}")), }; - // Read stderr while it streams + // Read stderr (buffered, not forwarded — groups print their own output contiguously) use std::io::BufRead; let stderr_handle = child.stderr.take().unwrap(); let reader = std::io::BufReader::new(stderr_handle); @@ -301,7 +300,6 @@ pub fn build_block( for line in reader.lines() { match line { Ok(l) => { - let _ = writeln!(std::io::stderr(), "{l}"); captured.push_str(&l); captured.push('\n'); } -- cgit