File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -217,10 +217,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
217217 std:: process:: exit ( 0 ) ;
218218 }
219219 if param_str. starts_with ( '-' ) {
220- return Err ( format ! (
221- "unrecognized option '{}'" ,
222- param. to_string_lossy( )
223- ) ) ;
220+ return Err ( format ! ( "unrecognized option '{}'" , param. to_string_lossy( ) ) ) ;
224221 }
225222 if from. is_none ( ) {
226223 from = Some ( param) ;
Original file line number Diff line number Diff line change @@ -195,10 +195,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
195195 Err ( error) => return Err ( error) ,
196196 }
197197 if param. to_string_lossy ( ) . starts_with ( '-' ) {
198- return Err ( format ! (
199- "unrecognized option '{}'" ,
200- param. to_string_lossy( )
201- ) ) ;
198+ return Err ( format ! ( "unrecognized option '{}'" , param. to_string_lossy( ) ) ) ;
202199 }
203200 if from. is_none ( ) {
204201 from = Some ( param) ;
Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ mod common {
3939 cmd. assert ( )
4040 . code ( predicate:: eq ( 2 ) )
4141 . failure ( )
42- . stderr ( predicate:: str:: contains (
43- "unrecognized option '--foobar'" ,
44- ) ) ;
42+ . stderr ( predicate:: str:: contains ( "unrecognized option '--foobar'" ) ) ;
4543 }
4644 Ok ( ( ) )
4745 }
You can’t perform that action at this time.
0 commit comments