fix clippy

This commit is contained in:
Evan Almloff committed 2023-10-17 13:02:51 -05:00
1 parent 050add21d7
commit ce86aabf26
2 files changed
+2 -2

No files matched your search

+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.ends_with(".svg") {
if trimmed.extension().is_some_and(|ext| ext == "svg") {
return Ok("image/svg+xml");
}
+1 -1
View File
@@ -30,7 +30,7 @@ pub(crate) fn get_effect_stack() -> EffectStack {
Some(rt) => rt,
None => {
let store = EffectStack::default();
provide_root_context(store.clone());
provide_root_context(store);
store
}
}