-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
dx fmt is eating comments
Steps To Reproduce
Steps to reproduce the behavior:
fn x() {
rsx! {
button { class: "control-button", onclick: move |_| async move {
// comment
() }, "print content" }
};
}Run dx fmt
fn x() {
rsx! {
button { class: "control-button", onclick: // comment
move |_| async move { () }, "print content" }
};
}Comment moved out of closure
Run dx fmt again
fn x() {
rsx! {
button { class: "control-button", onclick: move |_| async move { () }, "print content" }
};
}Comment is now gone.
Expected behavior
dx fmt never moves comments out of scope or removes them.
Environment:
- Dioxus version: v0.7.3
- Rust version: 1.93.0
- OS info: linux
- App platform: N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working