We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4cc3f4f + 144d941 commit 94ca096Copy full SHA for 94ca096
src/bin/cargo/cli.rs
@@ -15,10 +15,10 @@ lazy_static::lazy_static! {
15
// Maps from commonly known external commands (not builtin to cargo) to their
16
// description, for the help page. Reserved for external subcommands that are
17
// core within the rust ecosystem (esp ones that might become internal in the future).
18
- static ref KNOWN_EXTERNAL_COMMAND_DESCRIPTIONS: HashMap<&'static str, &'static str> = vec![
+ static ref KNOWN_EXTERNAL_COMMAND_DESCRIPTIONS: HashMap<&'static str, &'static str> = HashMap::from([
19
("clippy", "Checks a package to catch common mistakes and improve your Rust code."),
20
("fmt", "Formats all bin and lib files of the current crate using rustfmt."),
21
- ].into_iter().collect();
+ ]);
22
}
23
24
pub fn main(config: &mut Config) -> CliResult {
0 commit comments