@@ -165,7 +165,7 @@ impl<T, P> Punctuated<T, P> {
165
165
assert ! (
166
166
self . empty_or_trailing( ) ,
167
167
"Punctuated::push_value: Punctuated is not empty or \
168
- does not have a trailing punctuation"
168
+ does not have a trailing punctuation",
169
169
) ;
170
170
171
171
self . last = Some ( Box :: new ( value) ) ;
@@ -181,7 +181,7 @@ impl<T, P> Punctuated<T, P> {
181
181
pub fn push_punct ( & mut self , punctuation : P ) {
182
182
assert ! (
183
183
self . last. is_some( ) ,
184
- "Punctuated::push_punct: Punctuated doesn't have any items"
184
+ "Punctuated::push_punct: Punctuated doesn't have any items" ,
185
185
) ;
186
186
let last = self . last . take ( ) . unwrap ( ) ;
187
187
self . inner . push ( ( * last, punctuation) ) ;
@@ -238,7 +238,7 @@ impl<T, P> Punctuated<T, P> {
238
238
{
239
239
assert ! (
240
240
index <= self . len( ) ,
241
- "Punctuated::insert: index out of range"
241
+ "Punctuated::insert: index out of range" ,
242
242
) ;
243
243
244
244
if index == self . len ( ) {
@@ -468,7 +468,7 @@ impl<T, P> Extend<Pair<T, P>> for Punctuated<T, P> {
468
468
assert ! (
469
469
self . empty_or_trailing( ) ,
470
470
"Punctuated::extend: Punctuated is not empty or \
471
- does not have a trailing punctuation"
471
+ does not have a trailing punctuation",
472
472
) ;
473
473
474
474
let mut nomore = false ;
0 commit comments