|
3 | 3 | use std::ascii::AsciiExt; |
4 | 4 | use std::fmt; |
5 | 5 | use std::collections::VecDeque; |
6 | | -use debug_builders::DebugStruct; |
7 | 6 | use std::borrow::Cow; |
8 | 7 | use std::slice; |
9 | 8 | use std::vec; |
@@ -38,7 +37,7 @@ impl<'a> RowsNew<'a> for Rows<'a> { |
38 | 37 |
|
39 | 38 | impl<'a> fmt::Debug for Rows<'a> { |
40 | 39 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { |
41 | | - DebugStruct::new(fmt, "Rows") |
| 40 | + fmt.debug_struct("Rows") |
42 | 41 | .field("columns", &self.columns()) |
43 | 42 | .field("rows", &self.data.len()) |
44 | 43 | .finish() |
@@ -178,7 +177,7 @@ pub struct Row<'a> { |
178 | 177 |
|
179 | 178 | impl<'a> fmt::Debug for Row<'a> { |
180 | 179 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { |
181 | | - DebugStruct::new(fmt, "Row") |
| 180 | + fmt.debug_struct("Row") |
182 | 181 | .field("statement", self.stmt) |
183 | 182 | .finish() |
184 | 183 | } |
@@ -327,7 +326,7 @@ impl<'a, 'b> Drop for LazyRows<'a, 'b> { |
327 | 326 |
|
328 | 327 | impl<'a, 'b> fmt::Debug for LazyRows<'a, 'b> { |
329 | 328 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { |
330 | | - DebugStruct::new(fmt, "LazyRows") |
| 329 | + fmt.debug_struct("LazyRows") |
331 | 330 | .field("name", &self.name) |
332 | 331 | .field("row_limit", &self.row_limit) |
333 | 332 | .field("remaining_rows", &self.data.len()) |
|
0 commit comments