Skip to content

Commit

Permalink
Add a lifetime to the return type in search_packages
Browse files Browse the repository at this point in the history
The rust beta version fails to compile without those.

Signed-off-by: Nico Steinle <[email protected]>
  • Loading branch information
ammernico committed Nov 11, 2024
1 parent 697cbdb commit 1e76d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl Repository {
pname: &'a Option<PackageName>,
pvers: &'a Option<PackageVersionConstraint>,
matching_regexp: &'a Option<Regex>,
) -> Result<impl Iterator<Item = &Package> + 'a> {
) -> Result<impl Iterator<Item = &'a Package> + 'a> {
let mut r = self.inner.values()
.filter(move |p| {
match (pname, pvers, matching_regexp) {
Expand Down

0 comments on commit 1e76d47

Please sign in to comment.