Replace some ~[T] by Vec<T>