Skip to content

Commit 468cb63

Browse files
committed
fix: Remove unnecessary &mut
1 parent 6253e97 commit 468cb63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/io/stderr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Write for Stderr {
117117

118118
// Start the operation asynchronously.
119119
*state = State::Busy(blocking::spawn(async move {
120-
let res = std::io::Write::write(&mut inner.stderr, &mut inner.buf);
120+
let res = std::io::Write::write(&mut inner.stderr, &inner.buf);
121121
inner.last_op = Some(Operation::Write(res));
122122
State::Idle(Some(inner))
123123
}));

src/io/stdout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Write for Stdout {
117117

118118
// Start the operation asynchronously.
119119
*state = State::Busy(blocking::spawn(async move {
120-
let res = std::io::Write::write(&mut inner.stdout, &mut inner.buf);
120+
let res = std::io::Write::write(&mut inner.stdout, &inner.buf);
121121
inner.last_op = Some(Operation::Write(res));
122122
State::Idle(Some(inner))
123123
}));

0 commit comments

Comments
 (0)