From 887c4da5a1fc67b3d77a3e024126190bebbc7b65 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 7 Aug 2023 13:20:17 +0000 Subject: automatic import of rust --- ...lp-clippy-should-have-description-to-user.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 cargo-help-clippy-should-have-description-to-user.patch (limited to 'cargo-help-clippy-should-have-description-to-user.patch') diff --git a/cargo-help-clippy-should-have-description-to-user.patch b/cargo-help-clippy-should-have-description-to-user.patch new file mode 100644 index 0000000..5658c47 --- /dev/null +++ b/cargo-help-clippy-should-have-description-to-user.patch @@ -0,0 +1,30 @@ +From 4a2c2e81316960ffbcc3dc1c91758420d6db0a6e Mon Sep 17 00:00:00 2001 +From: si-gui +Date: Thu, 24 Jun 2021 16:35:12 +0800 +Subject: [PATCH] cargo help clippy should have description to user + +--- + src/tools/cargo/src/bin/cargo/cli.rs | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/src/tools/cargo/src/bin/cargo/cli.rs b/src/tools/cargo/src/bin/cargo/cli.rs +index 243f6ac0..c2dd8785 100644 +--- a/src/tools/cargo/src/bin/cargo/cli.rs ++++ b/src/tools/cargo/src/bin/cargo/cli.rs +@@ -135,7 +135,12 @@ Run with 'cargo -Z [FLAG] [SUBCOMMAND]'", + } else if is_verbose { + drop_println!(config, " {:<20} {}", name, path.display()); + } else { +- drop_println!(config, " {}", name); ++ if name.as_str() == "clippy" { ++ let summary = "Checks a package to catch common mistakes and improve your Rust code."; ++ drop_println!(config, " {}", name, summary); ++ } else { ++ drop_println!(config, " {}", name); ++ } + } + } + CommandInfo::Alias { target } => { +-- +2.30.0 + -- cgit v1.2.3