We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b602c10 commit c937275Copy full SHA for c937275
src/lib.rs
@@ -73,7 +73,7 @@ fn run_with_throttle(delay_ms: u64) -> Result<()> {
73
let reader = BufReader::new(stdout);
74
let mut out = std::io::stdout().lock();
75
76
- for line in reader.lines().flatten() {
+ for line in reader.lines().map_while(Result::ok) {
77
let _ = writeln!(out, "{}", line);
78
let _ = out.flush();
79
std::thread::sleep(delay);
0 commit comments