We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef133ef + a903e1a commit bb92d72Copy full SHA for bb92d72
src/lib.rs
@@ -306,7 +306,7 @@ impl<A: Array> ArrayVec<A> {
306
unsafe { // infallible
307
// The spot to put the new value
308
{
309
- let p = self.get_unchecked_mut(index) as *mut _;
+ let p: *mut _ = self.get_unchecked_mut(index);
310
// Shift everything over to make space. (Duplicating the
311
// `index`th element into two consecutive places.)
312
ptr::copy(p, p.offset(1), len - index);
0 commit comments