(mime: &str)
| 676 | } |
| 677 | |
| 678 | fn is_binary_asset_mime(mime: &str) -> bool { |
| 679 | mime.starts_with("image/") || mime == "application/pdf" |
| 680 | } |
| 681 | |
| 682 | fn slice_lines(text: &str, start: usize, end: Option<usize>) -> String { |
| 683 | let lines: Vec<&str> = text.lines().collect(); |
nothing calls this directly
no outgoing calls
no test coverage detected