Skip to content

Commit

Permalink
\!is_some => is_none
Browse files Browse the repository at this point in the history
  • Loading branch information
basile-henry committed Oct 13, 2022
1 parent d73ba53 commit 5fe8904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ To pass the arguments to the subcommand, remove `--`",
// (binary of the form `cargo-<subcommand>`)
// Currently this is only a warning, but after a transition period this will become
// a hard error.
if !super::builtin_aliases_execs(cmd).is_some() {
if super::builtin_aliases_execs(cmd).is_none() {
if let Some(path) = super::find_external_subcommand(config, cmd) {
config.shell().warn(format!(
"\
Expand Down

0 comments on commit 5fe8904

Please sign in to comment.