@@ -32,7 +32,7 @@ impl ast::BinExpr {
3232impl ast:: Fn {
3333 #[ must_use]
3434 pub fn with_body ( & self , body : ast:: BlockExpr ) -> ast:: Fn {
35- let mut to_insert: ArrayVec < [ SyntaxElement ; 2 ] > = ArrayVec :: new ( ) ;
35+ let mut to_insert: ArrayVec < SyntaxElement , 2 > = ArrayVec :: new ( ) ;
3636 let old_body_or_semi: SyntaxElement = if let Some ( old_body) = self . body ( ) {
3737 old_body. syntax ( ) . clone ( ) . into ( )
3838 } else if let Some ( semi) = self . semicolon_token ( ) {
@@ -55,7 +55,7 @@ impl ast::Fn {
5555
5656 let anchor = self . name ( ) . expect ( "The function must have a name" ) . syntax ( ) . clone ( ) ;
5757
58- let mut to_insert: ArrayVec < [ SyntaxElement ; 1 ] > = ArrayVec :: new ( ) ;
58+ let mut to_insert: ArrayVec < SyntaxElement , 1 > = ArrayVec :: new ( ) ;
5959 to_insert. push ( generic_args. syntax ( ) . clone ( ) . into ( ) ) ;
6060 self . insert_children ( InsertPosition :: After ( anchor. into ( ) ) , to_insert)
6161 }
9696impl ast:: Impl {
9797 #[ must_use]
9898 pub fn with_assoc_item_list ( & self , items : ast:: AssocItemList ) -> ast:: Impl {
99- let mut to_insert: ArrayVec < [ SyntaxElement ; 2 ] > = ArrayVec :: new ( ) ;
99+ let mut to_insert: ArrayVec < SyntaxElement , 2 > = ArrayVec :: new ( ) ;
100100 if let Some ( old_items) = self . assoc_item_list ( ) {
101101 let to_replace: SyntaxElement = old_items. syntax ( ) . clone ( ) . into ( ) ;
102102 to_insert. push ( items. syntax ( ) . clone ( ) . into ( ) ) ;
@@ -141,7 +141,7 @@ impl ast::AssocItemList {
141141 } ,
142142 } ;
143143 let ws = tokens:: WsBuilder :: new ( & format ! ( "{}{}" , whitespace, indent) ) ;
144- let to_insert: ArrayVec < [ SyntaxElement ; 2 ] > =
144+ let to_insert: ArrayVec < SyntaxElement , 2 > =
145145 [ ws. ws ( ) . into ( ) , item. syntax ( ) . clone ( ) . into ( ) ] . into ( ) ;
146146 self . insert_children ( position, to_insert)
147147 }
@@ -192,7 +192,7 @@ impl ast::RecordExprFieldList {
192192 tokens:: single_space ( )
193193 } ;
194194
195- let mut to_insert: ArrayVec < [ SyntaxElement ; 4 ] > = ArrayVec :: new ( ) ;
195+ let mut to_insert: ArrayVec < SyntaxElement , 4 > = ArrayVec :: new ( ) ;
196196 to_insert. push ( space. into ( ) ) ;
197197 to_insert. push ( field. syntax ( ) . clone ( ) . into ( ) ) ;
198198 to_insert. push ( make:: token ( T ! [ , ] ) . into ( ) ) ;
@@ -305,7 +305,7 @@ impl ast::PathSegment {
305305 iter:: once ( type_args. syntax ( ) . clone ( ) . into ( ) ) ,
306306 ) ;
307307 }
308- let mut to_insert: ArrayVec < [ SyntaxElement ; 2 ] > = ArrayVec :: new ( ) ;
308+ let mut to_insert: ArrayVec < SyntaxElement , 2 > = ArrayVec :: new ( ) ;
309309 if turbo {
310310 to_insert. push ( make:: token ( T ! [ :: ] ) . into ( ) ) ;
311311 }
@@ -444,7 +444,7 @@ impl ast::MatchArmList {
444444 let arm_ws = tokens:: WsBuilder :: new ( " " ) ;
445445 let match_indent = & leading_indent ( self . syntax ( ) ) . unwrap_or_default ( ) ;
446446 let match_ws = tokens:: WsBuilder :: new ( & format ! ( "\n {}" , match_indent) ) ;
447- let to_insert: ArrayVec < [ SyntaxElement ; 3 ] > =
447+ let to_insert: ArrayVec < SyntaxElement , 3 > =
448448 [ arm_ws. ws ( ) . into ( ) , item. syntax ( ) . clone ( ) . into ( ) , match_ws. ws ( ) . into ( ) ] . into ( ) ;
449449 self . insert_children ( position, to_insert)
450450 }
@@ -465,7 +465,7 @@ impl ast::GenericParamList {
465465 pub fn append_param ( & self , item : ast:: GenericParam ) -> ast:: GenericParamList {
466466 let space = tokens:: single_space ( ) ;
467467
468- let mut to_insert: ArrayVec < [ SyntaxElement ; 4 ] > = ArrayVec :: new ( ) ;
468+ let mut to_insert: ArrayVec < SyntaxElement , 4 > = ArrayVec :: new ( ) ;
469469 if self . generic_params ( ) . next ( ) . is_some ( ) {
470470 to_insert. push ( space. into ( ) ) ;
471471 }
0 commit comments