@@ -105,11 +105,11 @@ struct BufferedSummary<'a> {
105
105
impl < ' a > BufferedSummary < ' a > {
106
106
// Appends a new line which is common to both actual and expected.
107
107
fn feed_common_lines ( & mut self , common_line : & ' a str ) {
108
- if let Buffer :: CommonLineBuffer ( ref mut common_lines) = self . buffer {
108
+ if let Buffer :: CommonLines ( ref mut common_lines) = self . buffer {
109
109
common_lines. push ( common_line) ;
110
110
} else {
111
111
self . flush_buffer ( ) ;
112
- self . buffer = Buffer :: CommonLineBuffer ( vec ! [ common_line] ) ;
112
+ self . buffer = Buffer :: CommonLines ( vec ! [ common_line] ) ;
113
113
}
114
114
}
115
115
@@ -229,7 +229,7 @@ impl<'a> Display for BufferedSummary<'a> {
229
229
230
230
enum Buffer < ' a > {
231
231
Empty ,
232
- CommonLineBuffer ( Vec < & ' a str > ) ,
232
+ CommonLines ( Vec < & ' a str > ) ,
233
233
ExtraActualLineChunk ( & ' a str ) ,
234
234
ExtraExpectedLineChunk ( & ' a str ) ,
235
235
}
@@ -238,7 +238,7 @@ impl<'a> Buffer<'a> {
238
238
fn flush ( & mut self , summary : & mut SummaryBuilder ) {
239
239
match self {
240
240
Buffer :: Empty => { }
241
- Buffer :: CommonLineBuffer ( common_lines) => {
241
+ Buffer :: CommonLines ( common_lines) => {
242
242
Self :: flush_common_lines ( std:: mem:: take ( common_lines) , summary) ;
243
243
}
244
244
Buffer :: ExtraActualLineChunk ( extra_actual) => {
0 commit comments