We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd5329 commit 2378f7eCopy full SHA for 2378f7e
tokio-fs/examples/std-echo.rs
@@ -19,8 +19,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
19
20
while let Some(line) = input.next().await {
21
let line = line?;
22
- output.send(format!("OUT: {}", line)).await?;
23
- error.send(format!("ERR: {}", line)).await?;
+ // https://github.com/rust-lang/rust/pull/64856
+ let s = format!("OUT: {}", line);
24
+ output.send(s).await?;
25
+ let s = format!("ERR: {}", line);
26
+ error.send(s).await?;
27
}
28
Ok(())
29
0 commit comments