Merge pull request #91 from bluss/future-compat
FIX: Fix future compat warning with pointer casts
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user