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 --- fix-a-println-wrong-format.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fix-a-println-wrong-format.patch (limited to 'fix-a-println-wrong-format.patch') 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 +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 + -- cgit v1.2.3