fat_exprs.rsx 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. //! Exprs that are too long to fit on one line
  2. fn it_works() {
  3. rsx! {
  4. div {
  5. if thing
  6. .some_long_method_that_is_too_long_to_fit_on_one_line()
  7. .some_long_method_that_is_too_long_to_fit_on_one_line()
  8. .some_long_method_that_is_too_long_to_fit_on_one_line({
  9. chain()
  10. .some_long_method_that_is_too_long_to_fit_on_one_line()
  11. .some_long_method_that_is_too_long_to_fit_on_one_line()
  12. })
  13. {
  14. "hi"
  15. }
  16. for item in thing
  17. .some_long_method_that_is_too_long_to_fit_on_one_line()
  18. .some_long_method_that_is_too_long_to_fit_on_one_line()
  19. .some_long_method_that_is_too_long_to_fit_on_one_line({
  20. chain()
  21. .some_long_method_that_is_too_long_to_fit_on_one_line()
  22. .some_long_method_that_is_too_long_to_fit_on_one_line()
  23. })
  24. {
  25. "hi"
  26. }
  27. }
  28. }
  29. }