peek_read
should be &mut self
, not &self
#555
Labels
Milestone
peek_read
should be &mut self
, not &self
#555
I'm currently implementing
Reader
for a newtype overVecDeque
.To implement
peek_read
, I need to make theVecDeque
contiguous withmake_contiguous
, which mutates in order to make the data a single contiguous slice.I don't see any reason why
peek_read
should require being immutable, as every context I have seen it used in is followed byconsume
.Would it be OK to change this in a PR?
The text was updated successfully, but these errors were encountered: