Skip to content

Commit 2378f7e

Browse files
committed
1 parent 5fd5329 commit 2378f7e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tokio-fs/examples/std-echo.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
1919

2020
while let Some(line) = input.next().await {
2121
let line = line?;
22-
output.send(format!("OUT: {}", line)).await?;
23-
error.send(format!("ERR: {}", line)).await?;
22+
// https://github.com/rust-lang/rust/pull/64856
23+
let s = format!("OUT: {}", line);
24+
output.send(s).await?;
25+
let s = format!("ERR: {}", line);
26+
error.send(s).await?;
2427
}
2528
Ok(())
2629
}

0 commit comments

Comments
 (0)