about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-06-06 23:07:02 +0800
committerIvan Tham <pickfire@riseup.net>2020-06-06 23:07:02 +0800
commit758aa23e443bd3c84b6d0d5bb86051c329129681 (patch)
tree7146513f5de8cbce0adf0447b83af0a2813a0fe1 /src/liballoc
parent118b50524b79e565f017e08bce9b90a16c63634f (diff)
downloadrust-758aa23e443bd3c84b6d0d5bb86051c329129681.tar.gz
rust-758aa23e443bd3c84b6d0d5bb86051c329129681.zip
Elide type on liballoc vec
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index ffae3b5c789..96923ea47f3 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -984,7 +984,7 @@ impl<T> Vec<T> {
             // bounds check above succeeds there must be a last element (which
             // can be self[index] itself).
             let last = ptr::read(self.as_ptr().add(len - 1));
-            let hole: *mut T = self.as_mut_ptr().add(index);
+            let hole = self.as_mut_ptr().add(index);
             self.set_len(len - 1);
             ptr::replace(hole, last)
         }