Skip to content

Commit 9b97573

Browse files
committed
io: Avoid marking buffer as uninit when copying to BufWriter
1 parent 2a06022 commit 9b97573

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/std/src/io/copy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ impl<I: Write + ?Sized> BufferedWriterSpec for BufWriter<I> {
249249
}
250250
} else {
251251
self.flush_buf()?;
252-
init = 0;
253252
}
254253
}
255254
}

0 commit comments

Comments
 (0)