diff --git a/src/buffer/std_buf.rs b/src/buffer/std_buf.rs index 7bf89c3..ab59f14 100644 --- a/src/buffer/std_buf.rs +++ b/src/buffer/std_buf.rs @@ -67,7 +67,7 @@ impl StdBuf { let len = self.len(); let buf_slice = unsafe { self.buf.as_mut_slice() }; - buf_slice.copy_within(self.pos..self.pos+len, 0); + buf_slice.copy_within(self.pos..self.pos + len, 0); self.pos = 0; self.end = len;