fix: Remove unnecessary &mut

pull/270/head
k-nasa 5 years ago
parent 6253e97717
commit 468cb6348f

@ -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…
Cancel
Save