From d2e288ab6c735583b26ee9f46387821ca422c96d Mon Sep 17 00:00:00 2001 From: Donough Liu Date: Sun, 8 Nov 2020 01:28:22 +0800 Subject: [PATCH] Correct tests, reveal real problem Dehack, revert #1856 Fix incorrect error message. Comment out regressed logic Fix clippy Minor redundant logic cleanup Fix clippy dot fix Clearer error processing Acc a request Flow reordering Remove redundant ClapResult in some functions Flow optimize Integrate workflow Branch simpification Simplify possible subcommand Optimize branch, more comments Eliminate unreachable branch comment fix Add comments for some internal app settings Resolve a TODO Unused clippy allow --- src/parse/parser.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 107c01312dea..644672826d8a 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -1033,11 +1033,7 @@ impl<'help, 'app> Parser<'help, 'app> { .iter() .map(|x| x.to_str().expect(INVALID_UTF8)) .collect(); - Err(self.did_you_mean_error( - arg.to_str().expect(INVALID_UTF8), - matcher, - &remaining_args, - )) + Err(self.did_you_mean_error(arg.to_str().expect(INVALID_UTF8), matcher, &remaining_args)) } }