Files
dioxus/packages/autofmt/tests/samples/comments_nested_closures.rsx
T
Jonathan Kelley c73dc43233 fix(autofmt): add support for handling comments in various expression types (#5461)
* fix(autofmt): add support for handling comments in various expression types

* fmt
2026-04-07 16:19:00 -07:00

26 lines
495 B
R

rsx! {
button {
onclick: move |_| async move {
let nested = move || {
// nested closure comment
()
};
nested();
},
"nested closure"
}
button {
onclick: move |_| async move {
let nested = move || async move {
// nested async closure comment
()
};
nested().await;
},
"nested async closure"
}
}