diff options
| author | bors <bors@rust-lang.org> | 2020-11-08 14:24:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-08 14:24:58 +0000 |
| commit | 7079de9b357a642cd877e22f9a30c74dffbc003d (patch) | |
| tree | 2e146bf1220fc4269784a2455f8b64c07be8f97c | |
| parent | b1faa7f0027327e133386f32476302cc2805c963 (diff) | |
| parent | a4acb3164ad93d8fe444783ad588a8b5d71dacd9 (diff) | |
| download | rust-7079de9b357a642cd877e22f9a30c74dffbc003d.tar.gz rust-7079de9b357a642cd877e22f9a30c74dffbc003d.zip | |
Auto merge of #6293 - Urcra:lint-example-fix, r=flip1995
Fix example used in cargo_common_metadata The previous example used in `cargo_common_metadata` included an authors field, even though the comment says it doesn't. And thus doesn't actually demonstrate an example of how the lint fails. This removes that authors field from the _bad_ example and suggest to fix the _bad_ example by adding the authors field changelog: Fix example used in `cargo_common_metadata`
| -rw-r--r-- | clippy_lints/src/cargo_common_metadata.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clippy_lints/src/cargo_common_metadata.rs b/clippy_lints/src/cargo_common_metadata.rs index 76a000157df..0d294761af5 100644 --- a/clippy_lints/src/cargo_common_metadata.rs +++ b/clippy_lints/src/cargo_common_metadata.rs @@ -23,6 +23,21 @@ declare_clippy_lint! { /// [package] /// name = "clippy" /// version = "0.0.212" + /// description = "A bunch of helpful lints to avoid common pitfalls in Rust" + /// repository = "https://github.com/rust-lang/rust-clippy" + /// readme = "README.md" + /// license = "MIT OR Apache-2.0" + /// keywords = ["clippy", "lint", "plugin"] + /// categories = ["development-tools", "development-tools::cargo-plugins"] + /// ``` + /// + /// Should include an authors field like: + /// + /// ```toml + /// # This `Cargo.toml` includes all common metadata + /// [package] + /// name = "clippy" + /// version = "0.0.212" /// authors = ["Someone <someone@rust-lang.org>"] /// description = "A bunch of helpful lints to avoid common pitfalls in Rust" /// repository = "https://github.com/rust-lang/rust-clippy" |
