Skip to content

Commit 2b0c9bd

Browse files
committed
Format PR 970 in rustfmt style
1 parent a782687 commit 2b0c9bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/punctuated.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl<T, P> Punctuated<T, P> {
165165
assert!(
166166
self.empty_or_trailing(),
167167
"Punctuated::push_value: Punctuated is not empty or \
168-
does not have a trailing punctuation"
168+
does not have a trailing punctuation",
169169
);
170170

171171
self.last = Some(Box::new(value));
@@ -181,7 +181,7 @@ impl<T, P> Punctuated<T, P> {
181181
pub fn push_punct(&mut self, punctuation: P) {
182182
assert!(
183183
self.last.is_some(),
184-
"Punctuated::push_punct: Punctuated doesn't have any items"
184+
"Punctuated::push_punct: Punctuated doesn't have any items",
185185
);
186186
let last = self.last.take().unwrap();
187187
self.inner.push((*last, punctuation));
@@ -238,7 +238,7 @@ impl<T, P> Punctuated<T, P> {
238238
{
239239
assert!(
240240
index <= self.len(),
241-
"Punctuated::insert: index out of range"
241+
"Punctuated::insert: index out of range",
242242
);
243243

244244
if index == self.len() {
@@ -468,7 +468,7 @@ impl<T, P> Extend<Pair<T, P>> for Punctuated<T, P> {
468468
assert!(
469469
self.empty_or_trailing(),
470470
"Punctuated::extend: Punctuated is not empty or \
471-
does not have a trailing punctuation"
471+
does not have a trailing punctuation",
472472
);
473473

474474
let mut nomore = false;

0 commit comments

Comments
 (0)