Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockstore: Use Vec::from() instead of slice::to_vec() (#4047)
Vec::from() on a Box<[T]> takes over the heap allocation whereas slice::to_vec() copies the contents into a new Vec. We don't need the old Box<[u8]> so transferring ownership is sufficient here
- Loading branch information