-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make
vdaf::verify_finish
take IntoIterator
`verify_finish` wants to consume a collection of `VerifierMessage`. Accomplishing this with `Vec<VerifierMessage>` forces allocation and copying to the heap. We instead take `IntoIterator<Item = VerifierMessage>`, which allows callers to pass either a slice of `VerifierMessage` on the stack or a `Vec` on the heap, or anything else that implements `IntoIterator`. Besides the flexibility, `IntoIterator.into_iter` is infallible, so this doesn't introduce any new error cases to handle.
- Loading branch information
1 parent
e58a06d
commit dd4c7b8
Showing
1 changed file
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters