mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-18 00:00:12 +02:00
Fix deprecation warnings
This commit is contained in:
+2
-2
@@ -75,7 +75,7 @@ pub trait Buf {
|
||||
let src = self.bytes();
|
||||
cnt = cmp::min(src.len(), len - off);
|
||||
|
||||
ptr::copy_nonoverlapping_memory(
|
||||
ptr::copy_nonoverlapping(
|
||||
dst[off..].as_mut_ptr(), src.as_ptr(), cnt);
|
||||
|
||||
off += src.len();
|
||||
@@ -157,7 +157,7 @@ pub trait MutBuf : Sized {
|
||||
let dst = self.mut_bytes();
|
||||
cnt = cmp::min(dst.len(), len - off);
|
||||
|
||||
ptr::copy_nonoverlapping_memory(
|
||||
ptr::copy_nonoverlapping(
|
||||
dst.as_mut_ptr(), src[off..].as_ptr(), cnt);
|
||||
|
||||
off += cnt;
|
||||
|
||||
Reference in New Issue
Block a user