Collapse a structure expression onto one line
All checks were successful
/ test (pull_request) Successful in 3m34s
All checks were successful
/ test (pull_request) Successful in 3m34s
I had put `active_tab: /* ... */` on its own line to make the `create_signal` call more readable, but it wasn't worth the cost in vertical space.
This commit is contained in:
parent
af59166906
commit
ebad512a03
1 changed files with 1 additions and 3 deletions
|
@ -16,9 +16,7 @@ struct DiagnosticsState {
|
||||||
|
|
||||||
impl DiagnosticsState {
|
impl DiagnosticsState {
|
||||||
fn new(initial_tab: String) -> DiagnosticsState {
|
fn new(initial_tab: String) -> DiagnosticsState {
|
||||||
DiagnosticsState {
|
DiagnosticsState { active_tab: create_signal(initial_tab) }
|
||||||
active_tab: create_signal(initial_tab),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue