提交 48177546 编写于 作者: J Jacob Kiesel 提交者: GitHub

Fix ownership issues

上级 0e2427cd
......@@ -2692,7 +2692,9 @@ fn next(&mut self) -> Option<T> {
return Some(ptr::read(&v[i]));
} else if self.del > 0 {
let del = self.del;
ptr::copy_nonoverlapping(self.vec.as_ptr().offset(i), self.vec.as_mut_ptr().offset(i - del), 1);
let src = self.vec.as_ptr().offset(i);
let dst = self.vec.as_mut_ptr().offset(i - del);
ptr::copy_nonoverlapping(src, dst, 1);
}
}
None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册