(content: &[u8])
| 395 | } |
| 396 | |
| 397 | fn count_line_units(content: &[u8]) -> usize { |
| 398 | if content.is_empty() { |
| 399 | 0 |
| 400 | } else { |
| 401 | content.split_inclusive(|&b| b == b'\n').count() |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | #[derive(Clone, Debug)] |
| 406 | struct ImportLine { |
no test coverage detected