@@ -301,7 +301,8 @@ fn partial_type(input: &str) -> IResult<&str, Type> {
301301 ) ,
302302 |tuple_type : & TupleType | {
303303 // Empty partial types are allowed, or at least one field must be named
304- tuple_type. fields . is_empty ( ) || tuple_type. fields . iter ( ) . any ( |f| f. name . is_some ( ) )
304+ tuple_type. fields . is_empty ( )
305+ || tuple_type. fields . iter ( ) . any ( |f| f. name . is_some ( ) )
305306 } ,
306307 ) ,
307308 ) ) ,
@@ -420,7 +421,7 @@ fn function_type(input: &str) -> IResult<&str, Type> {
420421
421422fn function_input_type ( input : & str ) -> IResult < & str , Type > {
422423 alt ( (
423- partial_type, // Must come before grouping parentheses
424+ partial_type, // Must come before grouping parentheses
424425 delimited ( pair ( char ( '(' ) , ws0) , type_definition, pair ( ws0, char ( ')' ) ) ) ,
425426 tuple_type,
426427 primitive_type,
@@ -431,7 +432,7 @@ fn function_input_type(input: &str) -> IResult<&str, Type> {
431432
432433fn function_output_type ( input : & str ) -> IResult < & str , Type > {
433434 alt ( (
434- partial_type, // Must come before grouping parentheses
435+ partial_type, // Must come before grouping parentheses
435436 delimited ( pair ( char ( '(' ) , ws0) , type_definition, pair ( ws0, char ( ')' ) ) ) ,
436437 tuple_type,
437438 primitive_type,
@@ -443,7 +444,7 @@ fn function_output_type(input: &str) -> IResult<&str, Type> {
443444fn base_type ( input : & str ) -> IResult < & str , Type > {
444445 alt ( (
445446 tuple_type,
446- partial_type, // Must come before grouping parentheses to have priority
447+ partial_type, // Must come before grouping parentheses to have priority
447448 primitive_type,
448449 type_cycle,
449450 process_type,
@@ -533,13 +534,10 @@ fn tuple_field(input: &str) -> IResult<&str, TupleField> {
533534 } ,
534535 ) ,
535536 // Spread with identifier: ...identifier
536- map (
537- preceded ( tag ( "..." ) , identifier) ,
538- |id| TupleField {
539- name : None ,
540- value : FieldValue :: Spread ( Some ( id) ) ,
541- } ,
542- ) ,
537+ map ( preceded ( tag ( "..." ) , identifier) , |id| TupleField {
538+ name : None ,
539+ value : FieldValue :: Spread ( Some ( id) ) ,
540+ } ) ,
543541 // Spread chained value: ...
544542 map ( tag ( "..." ) , |_| TupleField {
545543 name : None ,
0 commit comments