fix clippy
This commit is contained in:
1 parent
d1575b40d1
commit
e86c1647d8
2 files changed
+4
-8
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()];
|
||||||
|
|||||||
@@ -366,13 +366,10 @@ impl WryWindowEventHandlerInner {
|
|||||||
target: &EventLoopWindowTarget<UserWindowEvent>,
|
target: &EventLoopWindowTarget<UserWindowEvent>,
|
||||||
) {
|
) {
|
||||||
// if this event does not apply to the window this listener cares about, return
|
// if this event does not apply to the window this listener cares about, return
|
||||||
match event {
|
if let Event::WindowEvent { window_id, .. } = event {
|
||||||
Event::WindowEvent { window_id, .. } => {
|
if *window_id != self.window_id {
|
||||||
if *window_id != self.window_id {
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
(self.handler)(event, target)
|
(self.handler)(event, target)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user