use add instead of offset

This commit is contained in:
The8472 2019-11-15 03:54:44 +01:00
parent 88b7ae642c
commit 328a75f766

View file

@ -2156,7 +2156,7 @@ where
debug_assert_eq!(original_ptr, src_buf);
let src_idx = source_iter.ptr;
unsafe {
let dst = src_buf.offset(front_buffer.count as isize);
let dst = src_buf.add(front_buffer.count);
debug_assert!(
dst as *const _ < src_idx,
"InPlaceIterable implementation produced more\