Skip to content

Commit

Permalink
Document condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Feb 6, 2021
1 parent 3c8f754 commit ea0b832
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/cargo_common_metadata.rs
Expand Up @@ -93,6 +93,7 @@ impl LateLintPass<'_> for CargoCommonMetadata {
let metadata = unwrap_cargo_metadata!(cx, CARGO_COMMON_METADATA, false);

for package in metadata.packages {
// we want to skip the lint if publish is `None` (`publish = false`) or if the vector is empty (`publish = []`)
if package.publish.as_ref().filter(|publish| publish.is_empty()).is_none() || self.ignore_publish {
if is_empty_vec(&package.authors) {
missing_warning(cx, &package, "package.authors");
Expand Down

0 comments on commit ea0b832

Please sign in to comment.