Box<Vec<T>>
RS-W1061Box<Vec<T>>
is unnecessary, consider using Box<[T]>
or Vec<T>
.
Vec
s are already stored on the heap, boxing them simply adds
another level of indirection. Consider using Box<[T]>
or Vec<T>
instead.
struct Foo<T> {
bar: Box<Vec<T>>
}
struct Foo<T> {
bar: Vec<T>
}