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

@ -32,9 +32,9 @@ fn event(e &tui.Event, mut app App) {
.mouse_down {
app.is_drag = true
app.cur_rect = Rect{
c: random_color()
x: e.x
y: e.y
c: random_color()
x: e.x
y: e.y
x2: e.x
y2: e.y
}
@ -89,11 +89,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()!
}