1
0

skipfail.wrong.rsx 488 B

1234567891011121314151617181920212223242526272829303132
  1. /// dont format this component
  2. #[rustfmt::skip]
  3. #[component]
  4. fn SidebarSection() -> Element {
  5. rsx! {
  6. div {
  7. "hi" div {} div {}
  8. }
  9. }
  10. }
  11. /// dont format this component
  12. #[component]
  13. fn SidebarSection() -> Element {
  14. // format this
  15. rsx! {
  16. div { "hi" }
  17. }
  18. // and this
  19. rsx! {
  20. div { "hi" div {} div {} }
  21. }
  22. // but not this
  23. #[rustfmt::skip]
  24. rsx! {
  25. div {
  26. "hi" div {} div {}
  27. }
  28. }
  29. }