@@ -32,7 +32,7 @@ impl ast::BinExpr {
32
32
impl ast:: Fn {
33
33
#[ must_use]
34
34
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 ( ) ;
36
36
let old_body_or_semi: SyntaxElement = if let Some ( old_body) = self . body ( ) {
37
37
old_body. syntax ( ) . clone ( ) . into ( )
38
38
} else if let Some ( semi) = self . semicolon_token ( ) {
@@ -55,7 +55,7 @@ impl ast::Fn {
55
55
56
56
let anchor = self . name ( ) . expect ( "The function must have a name" ) . syntax ( ) . clone ( ) ;
57
57
58
- let mut to_insert: ArrayVec < [ SyntaxElement ; 1 ] > = ArrayVec :: new ( ) ;
58
+ let mut to_insert: ArrayVec < SyntaxElement , 1 > = ArrayVec :: new ( ) ;
59
59
to_insert. push ( generic_args. syntax ( ) . clone ( ) . into ( ) ) ;
60
60
self . insert_children ( InsertPosition :: After ( anchor. into ( ) ) , to_insert)
61
61
}
96
96
impl ast:: Impl {
97
97
#[ must_use]
98
98
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 ( ) ;
100
100
if let Some ( old_items) = self . assoc_item_list ( ) {
101
101
let to_replace: SyntaxElement = old_items. syntax ( ) . clone ( ) . into ( ) ;
102
102
to_insert. push ( items. syntax ( ) . clone ( ) . into ( ) ) ;
@@ -141,7 +141,7 @@ impl ast::AssocItemList {
141
141
} ,
142
142
} ;
143
143
let ws = tokens:: WsBuilder :: new ( & format ! ( "{}{}" , whitespace, indent) ) ;
144
- let to_insert: ArrayVec < [ SyntaxElement ; 2 ] > =
144
+ let to_insert: ArrayVec < SyntaxElement , 2 > =
145
145
[ ws. ws ( ) . into ( ) , item. syntax ( ) . clone ( ) . into ( ) ] . into ( ) ;
146
146
self . insert_children ( position, to_insert)
147
147
}
@@ -192,7 +192,7 @@ impl ast::RecordExprFieldList {
192
192
tokens:: single_space ( )
193
193
} ;
194
194
195
- let mut to_insert: ArrayVec < [ SyntaxElement ; 4 ] > = ArrayVec :: new ( ) ;
195
+ let mut to_insert: ArrayVec < SyntaxElement , 4 > = ArrayVec :: new ( ) ;
196
196
to_insert. push ( space. into ( ) ) ;
197
197
to_insert. push ( field. syntax ( ) . clone ( ) . into ( ) ) ;
198
198
to_insert. push ( make:: token ( T ! [ , ] ) . into ( ) ) ;
@@ -305,7 +305,7 @@ impl ast::PathSegment {
305
305
iter:: once ( type_args. syntax ( ) . clone ( ) . into ( ) ) ,
306
306
) ;
307
307
}
308
- let mut to_insert: ArrayVec < [ SyntaxElement ; 2 ] > = ArrayVec :: new ( ) ;
308
+ let mut to_insert: ArrayVec < SyntaxElement , 2 > = ArrayVec :: new ( ) ;
309
309
if turbo {
310
310
to_insert. push ( make:: token ( T ! [ :: ] ) . into ( ) ) ;
311
311
}
@@ -444,7 +444,7 @@ impl ast::MatchArmList {
444
444
let arm_ws = tokens:: WsBuilder :: new ( " " ) ;
445
445
let match_indent = & leading_indent ( self . syntax ( ) ) . unwrap_or_default ( ) ;
446
446
let match_ws = tokens:: WsBuilder :: new ( & format ! ( "\n {}" , match_indent) ) ;
447
- let to_insert: ArrayVec < [ SyntaxElement ; 3 ] > =
447
+ let to_insert: ArrayVec < SyntaxElement , 3 > =
448
448
[ arm_ws. ws ( ) . into ( ) , item. syntax ( ) . clone ( ) . into ( ) , match_ws. ws ( ) . into ( ) ] . into ( ) ;
449
449
self . insert_children ( position, to_insert)
450
450
}
@@ -465,7 +465,7 @@ impl ast::GenericParamList {
465
465
pub fn append_param ( & self , item : ast:: GenericParam ) -> ast:: GenericParamList {
466
466
let space = tokens:: single_space ( ) ;
467
467
468
- let mut to_insert: ArrayVec < [ SyntaxElement ; 4 ] > = ArrayVec :: new ( ) ;
468
+ let mut to_insert: ArrayVec < SyntaxElement , 4 > = ArrayVec :: new ( ) ;
469
469
if self . generic_params ( ) . next ( ) . is_some ( ) {
470
470
to_insert. push ( space. into ( ) ) ;
471
471
}
0 commit comments