Fixes to autofmt, make it more aggressive (#2230)
* fix: fmt unterminated if, be more aggressive with line splits * Fix: Handle long exprs in for/if statements
This commit is contained in:
1 parent
46b0eeb12c
commit
be99e29e5f
31 files changed
+464
-117
No files matched your search
@@ -1,3 +1,5 @@
|
||||
fn app() -> Element {
|
||||
rsx! { div { "hello world" } }
|
||||
rsx! {
|
||||
div { "hello world" }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div {"hello world" }
|
||||
}
|
||||
rsx! { div {"hello world" } }
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
fn app() -> Element {
|
||||
rsx! { div { "hello world" } }
|
||||
rsx! {
|
||||
div { "hello world" }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div {"hello world" }
|
||||
}
|
||||
rsx! { div {"hello world" } }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
rsx! {
|
||||
Chapter { chapter }
|
||||
|
||||
div { class }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
rsx! {
|
||||
Chapter { chapter: chapter }
|
||||
|
||||
div { class: class }
|
||||
}
|
||||
Reference in new issue
Block a user