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
@@ -193,7 +193,7 @@ impl<'a> ToTokens for TemplateRenderer<'a> {
fn to_tokens(&self, out_tokens: &mut TokenStream2) {
let mut context = DynamicContext::default();
let key = match self.roots.get(0) {
let key = match self.roots.first() {
Some(BodyNode::Element(el)) if self.roots.len() == 1 => el.key.clone(),
Some(BodyNode::Component(comp)) if self.roots.len() == 1 => comp.key().cloned(),
_ => None,