diff --git a/src/io/stderr.rs b/src/io/stderr.rs index 64e0b186..e743e004 100644 --- a/src/io/stderr.rs +++ b/src/io/stderr.rs @@ -117,7 +117,7 @@ impl Write for Stderr { // Start the operation asynchronously. *state = State::Busy(blocking::spawn(async move { - let res = std::io::Write::write(&mut inner.stderr, &mut inner.buf); + let res = std::io::Write::write(&mut inner.stderr, &inner.buf); inner.last_op = Some(Operation::Write(res)); State::Idle(Some(inner)) })); diff --git a/src/io/stdout.rs b/src/io/stdout.rs index b7fee709..faf0c790 100644 --- a/src/io/stdout.rs +++ b/src/io/stdout.rs @@ -117,7 +117,7 @@ impl Write for Stdout { // Start the operation asynchronously. *state = State::Busy(blocking::spawn(async move { - let res = std::io::Write::write(&mut inner.stdout, &mut inner.buf); + let res = std::io::Write::write(&mut inner.stdout, &inner.buf); inner.last_op = Some(Operation::Write(res)); State::Idle(Some(inner)) }));