We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea0b832 commit fd8b5faCopy full SHA for fd8b5fa
clippy_lints/src/cargo_common_metadata.rs
@@ -93,7 +93,8 @@ impl LateLintPass<'_> for CargoCommonMetadata {
93
let metadata = unwrap_cargo_metadata!(cx, CARGO_COMMON_METADATA, false);
94
95
for package in metadata.packages {
96
- // we want to skip the lint if publish is `None` (`publish = false`) or if the vector is empty (`publish = []`)
+ // only run the lint if publish is `None` (`publish = true` or skipped entirely)
97
+ // or if the vector isn't empty (`publish = ["something"]`)
98
if package.publish.as_ref().filter(|publish| publish.is_empty()).is_none() || self.ignore_publish {
99
if is_empty_vec(&package.authors) {
100
missing_warning(cx, &package, "package.authors");
0 commit comments