mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
fix clippy
This commit is contained in:
parent
050add21d7
commit
ce86aabf26
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue