Remove unneeded mut keywords.

This commit is contained in:
Dan Gohman
2017-08-31 12:09:42 -07:00
parent 55ae51acfe
commit 99b361567a
2 changed files with 4 additions and 4 deletions

View File

@@ -467,7 +467,7 @@ impl<T: EntityRef> EntityList<T> {
/// Since the memory comes from the pool, this will be either zero entity references or
/// whatever where in a previously deallocated list.
pub fn grow_at(&mut self, index: usize, count: usize, pool: &mut ListPool<T>) {
let mut data = self.grow(count, pool);
let data = self.grow(count, pool);
// Copy elements after `index` up.
for i in (index + count..data.len()).rev() {