Skip to content

Commit bb92d72

Browse files
authored
Merge pull request #91 from bluss/future-compat
FIX: Fix future compat warning with pointer casts
2 parents ef133ef + a903e1a commit bb92d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl<A: Array> ArrayVec<A> {
306306
unsafe { // infallible
307307
// The spot to put the new value
308308
{
309-
let p = self.get_unchecked_mut(index) as *mut _;
309+
let p: *mut _ = self.get_unchecked_mut(index);
310310
// Shift everything over to make space. (Duplicating the
311311
// `index`th element into two consecutive places.)
312312
ptr::copy(p, p.offset(1), len - index);

0 commit comments

Comments
 (0)