(content: &[u8])
| 387 | } |
| 388 | |
| 389 | fn count_line_units(content: &[u8]) -> usize { |
| 390 | if content.is_empty() { |
| 391 | 0 |
| 392 | } else { |
| 393 | content.split_inclusive(|&b| b == b'\n').count() |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | #[derive(Clone, Debug)] |
| 398 | struct ImportLine { |
no test coverage detected