Przeglądaj źródła

Revert "Fix random clippy warning"

This reverts commit 85839abe5668a34c87a2d325ef2dd5a115ec7978.
Leonard 1 rok temu
rodzic
commit
613f2f9aca
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/desktop/src/protocol.rs

+ 1 - 1
packages/desktop/src/protocol.rs

@@ -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");
     }