Wasm target check before build (#1689)

* Add `rustup show` check for wasm32 target

* better place for check

* fmt

* clippy fmt
This commit is contained in:
Exotik850 authored and GitHub committed 2023-12-07 12:35:16 -06:00
1 parent 424926a8db
commit fc31876a57
9 files changed
+36 -36

No files matched your search

+1 -1
View File
@@ -560,7 +560,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.first().is_some() {
self.remove_nodes(&old[1..]);
self.replace(&old[0], new);
} else {