Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tonowak committed Feb 20, 2023
1 parent 34f7144 commit 53ebed3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rustdoc_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ impl<'a> CrateSource<'a> {
Self::ManifestPath { manifest } => {
let mut dependencies = manifest.parsed.dependencies.clone();
for target in manifest.parsed.target.values() {
// Fixes /~https://github.com/obi1kenobi/cargo-semver-checks/issues/369
// This part is not relevant to `Self::Registry`, because
// it doesn't have a `target` field and doesn't differentiate dependencies
// between different targets.
dependencies.extend(target.dependencies.clone().into_iter());
}
dependencies
Expand Down

0 comments on commit 53ebed3

Please sign in to comment.