Add trailing commas and clean up formatting #108
1 changed files with 1 additions and 3 deletions
|
@ -16,9 +16,7 @@ struct DiagnosticsState {
|
|||
|
||||
impl DiagnosticsState {
|
||||
fn new(initial_tab: String) -> DiagnosticsState {
|
||||
DiagnosticsState {
|
||||
active_tab: create_signal(initial_tab),
|
||||
}
|
||||
DiagnosticsState { active_tab: create_signal(initial_tab) }
|
||||
}
|
||||
}
|
||||
glen marked this conversation as resolved
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue
As a mild convention, should we prefer things like
when they easily fit on one line? As you may recall, I am averse to typographical conventions that burn vertical lines of code with no content, because I find allowing more code semantics to fit on the screen at once to be an aid to code comprehension, and it is vertical real estate that is at a premium...
p.s. I see now that in fact you have re-single-lined several such constructors in other files, so it seems to me this one should be as well, right?
Oh, yeah, I remember you mentioning that. I've collapsed the structure expression onto one line in commit
ebad512
. I had putactive_tab: /* ... */
on its own line to make thecreate_signal
call more readable, but it's fine if that's not worth the cost in vertical space.