summaryrefslogtreecommitdiff
path: root/fix-a-println-wrong-format.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix-a-println-wrong-format.patch')
-rw-r--r--fix-a-println-wrong-format.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/fix-a-println-wrong-format.patch b/fix-a-println-wrong-format.patch
new file mode 100644
index 0000000..d9456be
--- /dev/null
+++ b/fix-a-println-wrong-format.patch
@@ -0,0 +1,25 @@
+From edbb1b7011fe7bccf8a2efc71d806d61cd8e0c9b Mon Sep 17 00:00:00 2001
+From: si-gui <sunguoshuai@huawei.com>
+Date: Thu, 24 Jun 2021 20:15:14 +0800
+Subject: [PATCH] fix a println wrong format
+
+---
+ src/tools/cargo/src/bin/cargo/cli.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tools/cargo/src/bin/cargo/cli.rs b/src/tools/cargo/src/bin/cargo/cli.rs
+index c2dd8785..9c240690 100644
+--- a/src/tools/cargo/src/bin/cargo/cli.rs
++++ b/src/tools/cargo/src/bin/cargo/cli.rs
+@@ -137,7 +137,7 @@ Run with 'cargo -Z [FLAG] [SUBCOMMAND]'",
+ } else {
+ if name.as_str() == "clippy" {
+ let summary = "Checks a package to catch common mistakes and improve your Rust code.";
+- drop_println!(config, " {}", name, summary);
++ drop_println!(config, " {:<20} {}", name, summary);
+ } else {
+ drop_println!(config, " {}", name);
+ }
+--
+2.30.0
+