fix clippy
This commit is contained in:
1 parent
bd38cddc9f
commit
0ab7a02777
3 files changed
+4
-7
No files matched your search
@@ -577,8 +577,7 @@ impl<'b> VirtualDom {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 4. Compute the LIS of this list
|
// 4. Compute the LIS of this list
|
||||||
let mut lis_sequence = Vec::default();
|
let mut lis_sequence = Vec::with_capacity(new_index_to_old_index.len());
|
||||||
lis_sequence.reserve(new_index_to_old_index.len());
|
|
||||||
|
|
||||||
let mut predecessors = vec![0; new_index_to_old_index.len()];
|
let mut predecessors = vec![0; new_index_to_old_index.len()];
|
||||||
let mut starts = vec![0; new_index_to_old_index.len()];
|
let mut starts = vec![0; new_index_to_old_index.len()];
|
||||||
|
|||||||
@@ -60,9 +60,7 @@ fn events_generate() {
|
|||||||
|
|
||||||
dom.handle_event(
|
dom.handle_event(
|
||||||
"click",
|
"click",
|
||||||
Rc::new(PlatformEventData::new(Box::new(
|
Rc::new(PlatformEventData::new(Box::<SerializedMouseData>::default())),
|
||||||
SerializedMouseData::default(),
|
|
||||||
))),
|
|
||||||
ElementId(1),
|
ElementId(1),
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -337,8 +337,8 @@ impl HtmlEventConverter for SerializedHtmlEventConverter {
|
|||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn convert_mounted_data(&self, event: &PlatformEventData) -> MountedData {
|
fn convert_mounted_data(&self, _: &PlatformEventData) -> MountedData {
|
||||||
event.downcast::<()>().cloned().unwrap().into()
|
MountedData::from(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn convert_mouse_data(&self, event: &PlatformEventData) -> MouseData {
|
fn convert_mouse_data(&self, event: &PlatformEventData) -> MouseData {
|
||||||
|
|||||||
Reference in new issue
Block a user