Skip to content

Commit

Permalink
refactor(oma-pm): no need to Collect iter
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed May 24, 2024
1 parent 51ce41c commit 6a601d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oma-pm/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ impl<'a> OmaDatabase<'a> {
let glob = self
.cache
.packages(&sort)?
.filter(|x| glob_match::glob_match_with_captures(file_glob, x.name()).is_some())
.collect::<Vec<_>>();
.filter(|x| glob_match::glob_match_with_captures(file_glob, x.name()).is_some());

for i in glob {
let real_pkg = real_pkg(&i);
Expand Down

0 comments on commit 6a601d5

Please sign in to comment.