diff --git a/thefuck/rules/cargo_no_command.py b/thefuck/rules/cargo_no_command.py index c34325e..f141b67 100644 --- a/thefuck/rules/cargo_no_command.py +++ b/thefuck/rules/cargo_no_command.py @@ -4,7 +4,7 @@ from thefuck.utils import replace_argument, for_app @for_app('cargo', at_least=1) def match(command): - return ('o such subcommand' in command.stderr + return ('no such subcommand' in command.stderr.lower() and 'Did you mean' in command.stderr)