Skip to content

Commit 140bfc5

Browse files
committed
Removed another FIXME
1 parent b8632e1 commit 140bfc5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/libstd/io/buffered.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,6 @@ impl<R: Seek> Seek for BufReader<R> {
449449
#[stable(feature = "rust1", since = "1.0.0")]
450450
pub struct BufWriter<W: Write> {
451451
inner: Option<W>,
452-
// FIXME: Replace this with a VecDeque. Because VecDeque is a Ring buffer,
453-
// this would enable BufWriter to operate without any interior copies.
454-
// It was also allow a much simpler implementation of flush_buf. The main
455-
// blocker here is that VecDeque doesn't currently have the same
456-
// slice-specific specializations (extend_from_slice, `Extend`
457-
// specializations)
458452
buf: Vec<u8>,
459453
// #30888: If the inner writer panics in a call to write, we don't want to
460454
// write the buffered data a second time in BufWriter's destructor. This

0 commit comments

Comments
 (0)