We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc0bc58 commit 8a1af70Copy full SHA for 8a1af70
src/bin/cargo/commands/help.rs
@@ -85,10 +85,7 @@ fn try_help(config: &Config) -> CargoResult<bool> {
85
///
86
/// Returns None if it is not an alias.
87
fn check_alias(config: &Config, subcommand: &str) -> Option<Vec<String>> {
88
- match aliased_command(config, subcommand) {
89
- Ok(Some(alias)) => Some(alias),
90
- _ => None,
91
- }
+ aliased_command(config, subcommand).ok().flatten()
92
}
93
94
/// Checks if the given subcommand is a built-in command (not via an alias).
0 commit comments