mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: require unsafe for Struct(voidptr) casts
This commit is contained in:
@ -25,9 +25,7 @@ mut:
|
||||
cut_rate f64 = 5
|
||||
}
|
||||
|
||||
fn frame(x voidptr) {
|
||||
mut app := &App(x)
|
||||
|
||||
fn frame(mut app App) {
|
||||
app.tui.clear()
|
||||
|
||||
if app.points.len > 0 {
|
||||
@ -55,9 +53,7 @@ fn frame(x voidptr) {
|
||||
app.tui.flush()
|
||||
}
|
||||
|
||||
fn event(e &tui.Event, x voidptr) {
|
||||
mut app := &App(x)
|
||||
|
||||
fn event(e &tui.Event, mut app App) {
|
||||
match e.typ {
|
||||
.key_down {
|
||||
match e.code {
|
||||
|
Reference in New Issue
Block a user