@@ -1087,25 +1087,19 @@ impl<'a, 'b> InvocationCollector<'a, 'b> {
1087
1087
let MacCallStmt { mac, style, attrs, .. } = mac. into_inner ( ) ;
1088
1088
Ok ( ( style == MacStmtStyle :: Semicolon , mac, attrs. into ( ) ) )
1089
1089
}
1090
- StmtKind :: Item ( ref item) if matches ! ( item. kind, ItemKind :: MacCall ( ..) ) => {
1091
- match stmt. kind {
1092
- StmtKind :: Item ( item) => match item. into_inner ( ) {
1093
- ast:: Item { kind : ItemKind :: MacCall ( mac) , attrs, .. } => {
1094
- Ok ( ( mac. args . need_semicolon ( ) , mac, attrs) )
1095
- }
1096
- _ => unreachable ! ( ) ,
1097
- } ,
1090
+ StmtKind :: Item ( item) if matches ! ( item. kind, ItemKind :: MacCall ( ..) ) => {
1091
+ match item. into_inner ( ) {
1092
+ ast:: Item { kind : ItemKind :: MacCall ( mac) , attrs, .. } => {
1093
+ Ok ( ( mac. args . need_semicolon ( ) , mac, attrs) )
1094
+ }
1098
1095
_ => unreachable ! ( ) ,
1099
1096
}
1100
1097
}
1101
- StmtKind :: Semi ( ref expr) if matches ! ( expr. kind, ast:: ExprKind :: MacCall ( ..) ) => {
1102
- match stmt. kind {
1103
- StmtKind :: Semi ( expr) => match expr. into_inner ( ) {
1104
- ast:: Expr { kind : ast:: ExprKind :: MacCall ( mac) , attrs, .. } => {
1105
- Ok ( ( mac. args . need_semicolon ( ) , mac, attrs. into ( ) ) )
1106
- }
1107
- _ => unreachable ! ( ) ,
1108
- } ,
1098
+ StmtKind :: Semi ( expr) if matches ! ( expr. kind, ast:: ExprKind :: MacCall ( ..) ) => {
1099
+ match expr. into_inner ( ) {
1100
+ ast:: Expr { kind : ast:: ExprKind :: MacCall ( mac) , attrs, .. } => {
1101
+ Ok ( ( mac. args . need_semicolon ( ) , mac, attrs. into ( ) ) )
1102
+ }
1109
1103
_ => unreachable ! ( ) ,
1110
1104
}
1111
1105
}
0 commit comments