Replace full slice notation with index calls
This commit is contained in:
parent
918255ef8c
commit
f7ff37e4c5
225 changed files with 2166 additions and 2139 deletions
|
|
@ -437,7 +437,8 @@ impl<T> Buffer<T> {
|
|||
let start = self.start;
|
||||
self.size -= 1;
|
||||
self.start = (self.start + 1) % self.buf.len();
|
||||
self.buf[start].take().unwrap()
|
||||
let result = &mut self.buf[start];
|
||||
result.take().unwrap()
|
||||
}
|
||||
|
||||
fn size(&self) -> uint { self.size }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue