We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c8f754 commit ea0b832Copy full SHA for ea0b832
clippy_lints/src/cargo_common_metadata.rs
@@ -93,6 +93,7 @@ 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 = []`)
97
if package.publish.as_ref().filter(|publish| publish.is_empty()).is_none() || self.ignore_publish {
98
if is_empty_vec(&package.authors) {
99
missing_warning(cx, &package, "package.authors");
0 commit comments