2
0
Fork 1
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:
k-nasa 2019-10-01 16:52:22 +09:00
parent 6253e97717
commit 468cb6348f
2 changed files with 2 additions and 2 deletions

View file

@ -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))
}));

View file

@ -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))
}));