fix clippy

This commit is contained in:
Evan Almloff committed 2023-10-16 10:44:08 -05:00
1 parent a7736284c8
commit 9d19f4d204
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -201,7 +201,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.ends_with(".svg") {
if trimmed.extension().is_some_and(|ext| ext == "svg") {
return Ok("image/svg+xml");
}