@@ -197,10 +197,10 @@ impl<'a> Format<'a> for AstNode<'a, Vec<'a, ObjectPropertyKind<'a>>> {
197197 let trailing_separator = FormatTrailingCommas :: ES5 . trailing_separator ( f. options ( ) ) ;
198198 let source_text = f. context ( ) . source_text ( ) ;
199199 let mut join = f. join_nodes_with_soft_line ( ) ;
200- for ( element , formatted) in self . iter ( ) . zip (
201- FormatSeparatedIter :: new ( self . iter ( ) , "," ) . with_trailing_separator ( trailing_separator) ,
202- ) {
203- join. entry ( element. span ( ) , & formatted) ;
200+ for formatted in
201+ FormatSeparatedIter :: new ( self . iter ( ) , "," ) . with_trailing_separator ( trailing_separator)
202+ {
203+ join. entry ( formatted . element . span ( ) , & formatted) ;
204204 }
205205 join. finish ( )
206206 }
@@ -1649,14 +1649,12 @@ impl<'a> FormatWrite<'a> for AstNode<'a, TSEnumBody<'a>> {
16491649impl < ' a > Format < ' a > for AstNode < ' a , Vec < ' a , TSEnumMember < ' a > > > {
16501650 fn fmt ( & self , f : & mut Formatter < ' _ , ' a > ) -> FormatResult < ( ) > {
16511651 let trailing_separator = FormatTrailingCommas :: ES5 . trailing_separator ( f. options ( ) ) ;
1652- let source_text = f. source_text ( ) ;
16531652 let mut join = f. join_nodes_with_soft_line ( ) ;
1654- for ( element, formatted) in self . iter ( ) . zip (
1655- FormatSeparatedIter :: new ( self . iter ( ) , "," )
1656- . with_trailing_separator ( trailing_separator)
1657- . nodes_grouped ( ) ,
1658- ) {
1659- join. entry ( element. span ( ) , & formatted) ;
1653+ for formatted in FormatSeparatedIter :: new ( self . iter ( ) , "," )
1654+ . with_trailing_separator ( trailing_separator)
1655+ . nodes_grouped ( )
1656+ {
1657+ join. entry ( formatted. element . span ( ) , & formatted) ;
16601658 }
16611659 join. finish ( )
16621660 }
@@ -2190,7 +2188,7 @@ impl<'a> FormatWrite<'a> for AstNode<'a, TSIndexSignatureName<'a>> {
21902188
21912189impl < ' a > Format < ' a > for AstNode < ' a , Vec < ' a , TSInterfaceHeritage < ' a > > > {
21922190 fn fmt ( & self , f : & mut Formatter < ' _ , ' a > ) -> FormatResult < ( ) > {
2193- f. join_with ( & soft_line_break_or_space ( ) )
2191+ f. join_with ( soft_line_break_or_space ( ) )
21942192 . entries (
21952193 FormatSeparatedIter :: new ( self . iter ( ) , "," )
21962194 . with_trailing_separator ( TrailingSeparator :: Disallowed ) ,
0 commit comments