(mime: &str)
| 663 | } |
| 664 | |
| 665 | fn is_text_mime(mime: &str) -> bool { |
| 666 | mime.starts_with("text/") |
| 667 | || matches!( |
| 668 | mime, |
| 669 | "application/json" |
| 670 | | "application/xml" |
| 671 | | "application/javascript" |
| 672 | | "application/typescript" |
| 673 | | "application/x-sh" |
| 674 | | "application/x-shellscript" |
| 675 | ) |
| 676 | } |
| 677 | |
| 678 | fn is_binary_asset_mime(mime: &str) -> bool { |
| 679 | mime.starts_with("image/") || mime == "application/pdf" |
nothing calls this directly
no outgoing calls
no test coverage detected