Merge pull request #91 from bluss/future-compat

FIX: Fix future compat warning with pointer casts
This commit is contained in:
bluss
2018-01-17 20:33:41 +01:00
committed by GitHub
+1 -1
View File
@@ -306,7 +306,7 @@ impl<A: Array> ArrayVec<A> {
unsafe { // infallible
// The spot to put the new value
{
let p = self.get_unchecked_mut(index) as *mut _;
let p: *mut _ = self.get_unchecked_mut(index);
// Shift everything over to make space. (Duplicating the
// `index`th element into two consecutive places.)
ptr::copy(p, p.offset(1), len - index);