Avoid deprecated `Vec::get_mut`