From 3893e0cdca64616e059b704c640ee5ea33a9d884 Mon Sep 17 00:00:00 2001 From: nvbn Date: Tue, 28 Jun 2016 15:50:41 +0300 Subject: [PATCH] #517: Little refactoring --- thefuck/rules/cargo_no_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)