fix clippy
This commit is contained in:
1 parent
050add21d7
commit
ce86aabf26
2 files changed
+2
-2
No files matched your search
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ pub(crate) fn get_effect_stack() -> EffectStack {
|
|||||||
Some(rt) => rt,
|
Some(rt) => rt,
|
||||||
None => {
|
None => {
|
||||||
let store = EffectStack::default();
|
let store = EffectStack::default();
|
||||||
provide_root_context(store.clone());
|
provide_root_context(store);
|
||||||
store
|
store
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user