Fix dev dependencies being counted as main dependencies (#88)

This commit is contained in:
Paolo Barbolini 2020-12-13 09:50:14 +01:00 committed by GitHub
parent 7719c9c3b6
commit 3427054f9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ fn convert_pkgs(krate: Crate) -> Result<QueryCrateResponse, Error> {
match dep.kind() { match dep.kind() {
DependencyKind::Normal => deps.main.insert(name, CrateDep::External(req)), DependencyKind::Normal => deps.main.insert(name, CrateDep::External(req)),
DependencyKind::Dev => deps.main.insert(name, CrateDep::External(req)), DependencyKind::Dev => deps.dev.insert(name, CrateDep::External(req)),
_ => None, _ => None,
}; };
} }