Skip to content
Snippets Groups Projects
Commit c4546493 authored by Florian Hartwig's avatar Florian Hartwig Committed by Carl Lerche
Browse files

Fix bugs in RingBuf's io::Read and io::Write instance

parent e22415b4
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ impl MutBuf for RingBuf {
impl io::Read for RingBuf {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
if !MutBuf::has_remaining(self) {
if !Buf::has_remaining(self) {
return Ok(0);
}
......@@ -172,7 +172,7 @@ impl io::Read for RingBuf {
impl io::Write for RingBuf {
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
if !Buf::has_remaining(self) {
if !MutBuf::has_remaining(self) {
return Ok(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment