Skip to content

Commit

Permalink
Satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
riquito committed Mar 23, 2024
1 parent 6d101e2 commit 7c08964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fn why<'a>(
// 2) the package exists in yarn.lock, but is a direct dependency in
// package.json and we couldn't find it in pkg2parents (since that map
// contains only packages that are dependencies of something else)
let q = queries.get(0).unwrap();
let q = queries.first().unwrap();
for e in entries {
if e.name == q.0 && e.descriptors.contains(q) {
paths = vec![vec![q]];
Expand Down

0 comments on commit 7c08964

Please sign in to comment.