fix formatting

pull/223/head
Brent Kerby 4 years ago
parent 0e33cf622f
commit d918366396

@ -22,8 +22,8 @@ pub fn insert(&mut self, index: usize, elem: T) {
unsafe {
// ptr::copy(src, dest, len): "copy from src to dest len elems"
ptr::copy(self.ptr.as_ptr().offset(index as isize),
self.ptr.as_ptr().offset(index as isize + 1),
self.len - index);
self.ptr.as_ptr().offset(index as isize + 1),
self.len - index);
ptr::write(self.ptr.as_ptr().offset(index as isize), elem);
self.len += 1;
}

Loading…
Cancel
Save