clippy fix

This commit is contained in:
Evan Almloff committed 2024-01-09 10:09:58 -06:00
1 parent aed29b1dec
commit eb602fc29f
5 files changed
+32 -59

No files matched your search

+3 -14
View File
@@ -1,23 +1,12 @@
use std::{
cell::RefMut,
ops::{Deref, DerefMut},
};
use crate::{
any_props::AnyProps,
arena::ElementId,
innerlude::{
DirtyScope, ElementPath, ElementRef, VComponent, VNodeMount, VText, WriteMutations,
},
nodes::RenderReturn,
nodes::{DynamicNode, VNode},
innerlude::{ElementRef, VNodeMount, WriteMutations},
nodes::VNode,
scopes::ScopeId,
virtual_dom::VirtualDom,
Template, TemplateNode,
};
use DynamicNode::*;
mod component;
mod iterator;
mod node;
@@ -105,7 +94,7 @@ impl VirtualDom {
gen_muts: bool,
) {
// Remove the component from the dom
if let Some(mut node) = self.scopes[scope.0].last_rendered_node.take() {
if let Some(node) = self.scopes[scope.0].last_rendered_node.take() {
node.remove_node(self, to, gen_muts)
};