fmt: fix alignment of struct init fields (#22025)

This commit is contained in:
yuyi 2024-08-11 14:11:24 +08:00 committed by GitHub
parent 99da5726db
commit c51d30bf53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
671 changed files with 18817 additions and 18787 deletions

View file

@ -53,7 +53,7 @@ fn frame(mut app App) {
}
help_text := flag.to_doc[DocTest](
version: '1.0'
version: '1.0'
description: 'Hello! This should show an *animated* example application description.
We are at frame ${app.frame}.
Press ESCAPE or Ctrl+C to exit'
@ -82,11 +82,11 @@ type FrameFn = fn (voidptr)
fn main() {
mut app := &App{}
app.tui = tui.init(
user_data: app
event_fn: EventFn(event)
frame_fn: FrameFn(frame)
user_data: app
event_fn: EventFn(event)
frame_fn: FrameFn(frame)
hide_cursor: true
frame_rate: 60
frame_rate: 60
)
app.tui.run()!
}

View file

@ -211,8 +211,8 @@ Editing property: ${app.edit}, value: ${value}')
Press ESCAPE or Ctrl+C to exit and print layout code'
footer: '
Press ESCAPE or Ctrl+C to exit and print layout code'
fields: unsafe { field_docs }
layout: app.layout
fields: unsafe { field_docs }
layout: app.layout
options: app.options
) or { '' }
@ -233,11 +233,11 @@ fn main() {
println('${app.options}')
}) or {}
app.tui = tui.init(
user_data: app
event_fn: EventFn(event)
frame_fn: FrameFn(frame)
user_data: app
event_fn: EventFn(event)
frame_fn: FrameFn(frame)
hide_cursor: true
frame_rate: 60
frame_rate: 60
)
app.tui.run()!
}