Fix random clippy warning
This commit is contained in:
1 parent
33d4721fbe
commit
85839abe56
1 file changed
+1
-1
@@ -153,7 +153,7 @@ fn get_asset_root() -> Option<PathBuf> {
|
|||||||
|
|
||||||
/// Get the mime type from a path-like string
|
/// Get the mime type from a path-like string
|
||||||
fn get_mime_from_path(trimmed: &Path) -> Result<&'static str> {
|
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");
|
return Ok("image/svg+xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user