Projects
Mega:23.03
rust
_service:tar_scm:cargo-help-clippy-should-have-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:cargo-help-clippy-should-have-description-to-user.patch of Package rust
From 4a2c2e81316960ffbcc3dc1c91758420d6db0a6e Mon Sep 17 00:00:00 2001 From: si-gui <sunguoshuai@huawei.com> 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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2