(content: &[u8])
| 439 | } |
| 440 | |
| 441 | fn count_line_units(content: &[u8]) -> usize { |
| 442 | if content.is_empty() { |
| 443 | 0 |
| 444 | } else { |
| 445 | content.split_inclusive(|&b| b == b'\n').count() |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | #[derive(Clone, Debug)] |
| 450 | struct ImportLine { |
no test coverage detected