mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
fix clippy
This commit is contained in:
parent
22c659d995
commit
d3eefe4a27
2 changed files with 4 additions and 3 deletions
|
@ -128,7 +128,7 @@ impl ScopeContext {
|
|||
parent.name
|
||||
);
|
||||
if let Some(shared) = parent.shared_contexts.borrow().iter().find_map(|any| {
|
||||
tracing::trace!("found context {:?}", any.type_id());
|
||||
tracing::trace!("found context {:?}", (**any).type_id());
|
||||
any.downcast_ref::<T>()
|
||||
}) {
|
||||
return Some(shared.clone());
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
//! - tests to ensure dyn_into works for various event types.
|
||||
//! - Partial delegation?>
|
||||
|
||||
use crate::file_engine::WebFileEngine;
|
||||
use dioxus_core::{
|
||||
BorrowedAttributeValue, ElementId, Mutation, Template, TemplateAttribute, TemplateNode,
|
||||
};
|
||||
|
@ -288,8 +287,10 @@ pub fn virtual_event_from_websys_event(event: web_sys::Event, target: Element) -
|
|||
let mut files = None;
|
||||
if let Some(event) = event.dyn_ref::<web_sys::DragEvent>() {
|
||||
if let Some(data) = event.data_transfer() {
|
||||
#[cfg(feature = "file_engine")]
|
||||
#[allow(clippy::arc_with_non_send_sync)]
|
||||
if let Some(file_list) = data.files() {
|
||||
files = WebFileEngine::new(file_list)
|
||||
files = crate::file_engine::WebFileEngine::new(file_list)
|
||||
.map(|f| Arc::new(f) as Arc<dyn FileEngine>);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue