Use vec::view when possible #2880
Labels
A-lifetimes
Area: Lifetimes / regions
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
Milestone
vec::slice
allocates a new vector, when in most casesvec::view
would be better since it doesn't have to allocate anything. Currently region inference makes this tricky.The text was updated successfully, but these errors were encountered: