summaryrefslogtreecommitdiffstats
path: root/ranking
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2019-04-09 01:36:08 +0100
committerKornel <kornel@geekhood.net>2019-04-09 14:34:43 +0100
commitf6fc9f14c8b7ffe7ff82b6dd43b2294f977e2253 (patch)
tree15f8eeadd5431f54596a52ffcae2093788f33121 /ranking
parentccd66e1bc08d9eb2bcceee10f47dcf52921a9466 (diff)
Rename
Diffstat (limited to 'ranking')
-rw-r--r--ranking/src/authorrank.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranking/src/authorrank.rs b/ranking/src/authorrank.rs
index 898f985..05a68ab 100644
--- a/ranking/src/authorrank.rs
+++ b/ranking/src/authorrank.rs
@@ -284,7 +284,7 @@ fn get_crate_pr<'a>(crates: &KitchenSink, crates_io_crates: &'a FxHashMap<Origin
let mut next_pass = FxHashMap::with_capacity_and_hasher(prev_pass.len(), Default::default());
for k in crates_io_crates.values() {
if let Some(this_crate_pr) = prev_pass.get(k.name()).cloned() {
- let deps = k.latest_version().dependencies();
+ let deps = k.latest_version().direct_dependencies();
if deps.is_empty() {
// this is a sink, so pretend it has *all* other crates as deps
pool.authors_perspective += this_crate_pr.authors_perspective * damping_factor;