-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I have this code inside a view:
view! {
<option value={Into::<&'static str>::into(std)}>{std.pretty()}</option>
}
Which compiles just fine. But if I run leptosfmt, it is formatted to this:
view! {
<option value=Into::<
&'static str,
>::into(std)>{std.pretty()}</option>
}
Where the curly brackets around the Into call are removed. This leads to a parser error from the view macro:
error: failed to parse expression: unexpected end of input, expected one of: for
, parentheses, fn
, unsafe
, extern
, identifier, ::
, <
, dyn
, square brackets, *
, &
, !
, impl
, _
, lifetime
--> src/components/slides/report/one.rs:60:51
|
60 | ... <option value=Into::<
| ^^^^
Since the end of the Into call generic is interpreted as the end of the <option tag
fdietze
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working