(
f: &mut fmt::Formatter<'_>,
first_rows: &Vec<(&Row, &Diff)>,
ctx: &Indent,
redacted: bool,
)
| 1493 | } |
| 1494 | |
| 1495 | fn write_first_rows( |
| 1496 | f: &mut fmt::Formatter<'_>, |
| 1497 | first_rows: &Vec<(&Row, &Diff)>, |
| 1498 | ctx: &Indent, |
| 1499 | redacted: bool, |
| 1500 | ) -> fmt::Result { |
| 1501 | let mode = HumanizedExplain::new(redacted); |
| 1502 | for (row, diff) in first_rows { |
| 1503 | let row = mode.expr(*row, None); |
| 1504 | if **diff == Diff::ONE { |
| 1505 | writeln!(f, "{}- {}", ctx, row)?; |
| 1506 | } else { |
| 1507 | writeln!(f, "{}- ({} x {})", ctx, row, diff)?; |
| 1508 | } |
| 1509 | } |
| 1510 | Ok(()) |
| 1511 | } |
no test coverage detected