mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-31 17:55:35 +00:00
fix: Remove unnecessary &mut
This commit is contained in:
parent
6253e97717
commit
468cb6348f
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
}));
|
||||
|
|
|
@ -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))
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue