forked from pubgrub-rs/pubgrub
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
range: make 'as_singleton' return a borrow
It's cheaper this way if the caller only needs a `&V`. If the caller needs a `V`, then they can clone it. We can also move it to an impl block that only requires `Ord`, so that it will work with `V` types that don't implement `Clone`.
- Loading branch information
1 parent
1b150cd
commit 5048817
Showing
1 changed file
with
16 additions
and
16 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