cargo_common_metadata shouldn't warn on publish = false
#6649
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name: cargo_common_metadata
I tried this code:
I expected to see this happen:
I expect no errors to happen, because
publish
is set to false.Sometimes you have crates in your workspace that you only use for testing or other purposes, which don't need any of the metadata, this is why they have
publish = false
.Instead, this happened:
Warnings:
Meta
cargo clippy -V
: e.g. clippy 0.0.212 (f455e46 2020-06-20)rustc -Vv
:The text was updated successfully, but these errors were encountered: