diff --git a/packages/yew-macro/src/html_tree/html_node.rs b/packages/yew-macro/src/html_tree/html_node.rs
index 06be31ccc..d03ecb1bb 100644
--- a/packages/yew-macro/src/html_tree/html_node.rs
+++ b/packages/yew-macro/src/html_tree/html_node.rs
@@ -3,7 +3,7 @@ use quote::{quote, quote_spanned, ToTokens};
use syn::buffer::Cursor;
use syn::parse::{Parse, ParseStream, Result};
use syn::spanned::Spanned;
-use syn::{Expr, Lit};
+use syn::Lit;
use super::ToNodeIterator;
use crate::stringify::Stringify;
@@ -11,7 +11,7 @@ use crate::PeekValue;
pub enum HtmlNode {
Literal(Box),
- Expression(Box),
+ Expression(Box),
}
impl Parse for HtmlNode {
diff --git a/packages/yew-macro/src/html_tree/mod.rs b/packages/yew-macro/src/html_tree/mod.rs
index 266ea31bf..7491b27c0 100644
--- a/packages/yew-macro/src/html_tree/mod.rs
+++ b/packages/yew-macro/src/html_tree/mod.rs
@@ -247,7 +247,7 @@ impl HtmlChildrenTree {
.iter()
.map(|child| quote_spanned! {child.span()=> ::std::convert::Into::into(#child) });
return quote! {
- ::std::vec![#(#children_into),*]
+ [#(#children_into),*].to_vec()
};
}