diff --git a/tokio-fs/examples/std-echo.rs b/tokio-fs/examples/std-echo.rs index 3b0086b9dae..311f1248a48 100644 --- a/tokio-fs/examples/std-echo.rs +++ b/tokio-fs/examples/std-echo.rs @@ -19,8 +19,11 @@ async fn main() -> Result<(), Box> { while let Some(line) = input.next().await { let line = line?; - output.send(format!("OUT: {}", line)).await?; - error.send(format!("ERR: {}", line)).await?; + // https://github.com/rust-lang/rust/pull/64856 + let s = format!("OUT: {}", line); + output.send(s).await?; + let s = format!("ERR: {}", line); + error.send(s).await?; } Ok(()) }