Fix deprecation warnings

This commit is contained in:
Carl Lerche
2015-03-09 22:30:41 -07:00
parent 6f00c6117b
commit e806a59b4a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ impl ByteBuf {
let cnt = len as u32;
unsafe {
ptr::copy_nonoverlapping_memory(
ptr::copy_nonoverlapping(
dst.as_mut_ptr(),
self.mem.ptr().offset(self.pos as isize), len);
}
@@ -241,7 +241,7 @@ impl MutByteBuf {
#[inline]
fn write_ptr(&mut self, src: *const u8, len: u32) -> usize {
unsafe {
ptr::copy_nonoverlapping_memory(
ptr::copy_nonoverlapping(
self.buf.mem.ptr().offset(self.buf.pos as isize),
src, len as usize);