(&self, f: &mut fmt::Formatter<'_>)
| 336 | |
| 337 | impl fmt::Display for BuiltHunk { |
| 338 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 339 | match self.kind { |
| 340 | BuiltHunkKind::Insert => { |
| 341 | write!(f, "Insert at {}:{}", self.local.path, self.local.line) |
| 342 | } |
| 343 | BuiltHunkKind::Delete => { |
| 344 | write!( |
| 345 | f, |
| 346 | "Delete {} line(s) at {}:{}", |
| 347 | self.deleted_lines.len(), |
| 348 | self.local.path, |
| 349 | self.local.line |
| 350 | ) |
| 351 | } |
| 352 | BuiltHunkKind::Replace => { |
| 353 | write!( |
| 354 | f, |
| 355 | "Replace {} line(s) at {}:{}", |
| 356 | self.deleted_lines.len(), |
| 357 | self.local.path, |
| 358 | self.local.line |
| 359 | ) |
| 360 | } |
| 361 | } |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | // HUNK BUILD RESULT |
nothing calls this directly
no outgoing calls
no test coverage detected