File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -74,18 +74,18 @@ pub(crate) fn fragment_to_tokens(
74
74
let tokens = if lazy {
75
75
quote ! {
76
76
{
77
- :: leptos:: Fragment :: lazy( || [
77
+ :: leptos:: Fragment :: lazy( || :: std :: vec! [
78
78
#( #nodes) , *
79
- ] . to_vec ( ) )
79
+ ] )
80
80
#view_marker
81
81
}
82
82
}
83
83
} else {
84
84
quote ! {
85
85
{
86
- :: leptos:: Fragment :: new( [
86
+ :: leptos:: Fragment :: new( :: std :: vec! [
87
87
#( #nodes) , *
88
- ] . to_vec ( ) )
88
+ ] )
89
89
#view_marker
90
90
}
91
91
}
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ pub(crate) fn fragment_to_tokens_ssr(
83
83
} ) ;
84
84
quote ! {
85
85
{
86
- leptos:: Fragment :: lazy( || [
86
+ leptos:: Fragment :: lazy( || :: std :: vec! [
87
87
#( #nodes) , *
88
- ] . to_vec ( ) )
88
+ ] )
89
89
#view_marker
90
90
}
91
91
}
@@ -597,15 +597,14 @@ fn set_style_attribute_ssr(
597
597
let static_style_attr = node
598
598
. attributes ( )
599
599
. iter ( )
600
- . filter_map ( |a| match a {
600
+ . find_map ( |a| match a {
601
601
NodeAttribute :: Attribute ( attr)
602
602
if attr. key . to_string ( ) == "style" =>
603
603
{
604
604
attr. value ( ) . and_then ( value_to_string)
605
605
}
606
606
_ => None ,
607
607
} )
608
- . next ( )
609
608
. map ( |style| format ! ( "{style};" ) ) ;
610
609
611
610
let dyn_style_attr = node
Original file line number Diff line number Diff line change @@ -143,9 +143,9 @@ pub(crate) fn slot_to_tokens(
143
143
let slot = Ident :: new ( & slot, span) ;
144
144
if values. len ( ) > 1 {
145
145
quote ! {
146
- . #slot( [
146
+ . #slot( :: std :: vec! [
147
147
#( #values) *
148
- ] . to_vec ( ) )
148
+ ] )
149
149
}
150
150
} else {
151
151
let value = & values[ 0 ] ;
You can’t perform that action at this time.
0 commit comments