Revert "Fix random clippy warning"

This reverts commit 85839abe56.
This commit is contained in:
Leonard committed 2023-10-24 01:41:46 +02:00
1 parent 85839abe56
commit 613f2f9aca
1 file changed
+1 -1
+1 -1
View File
@@ -153,7 +153,7 @@ fn get_asset_root() -> Option<PathBuf> {
/// Get the mime type from a path-like string
fn get_mime_from_path(trimmed: &Path) -> Result<&'static str> {
if trimmed.extension().is_some_and(|ext| ext == ".svg") {
if trimmed.ends_with(".svg") {
return Ok("image/svg+xml");
}