fix clippy
This commit is contained in:
1 parent
77d53df532
commit
46fec1ae48
3 files changed
+3
-5
No files matched your search
@@ -626,7 +626,7 @@ impl<'b> VirtualDom {
|
||||
// If none of the old keys are reused by the new children, then we remove all the remaining old children and
|
||||
// create the new children afresh.
|
||||
if shared_keys.is_empty() {
|
||||
if old.get(0).is_some() {
|
||||
if !old.is_empty() {
|
||||
self.remove_nodes(&old[1..]);
|
||||
self.replace(&old[0], new);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user