Skip to content

Commit

Permalink
fix compilation with latest V (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman authored Nov 19, 2024
1 parent f57c28d commit 4582615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/eventcontroller.v
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn (mut ec EventController[T]) emit(e T, options EmitOptions) {
for _, w in ec.wait_fors {
mut b := false
if w.check != none {
c := w.check or { panic('corrupted') }
c := w.check
b = c(e)
} else {
b = true
Expand Down
2 changes: 1 addition & 1 deletion src/gateway.v
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub:
properties Properties
large_threshold ?int
gateway_url string = 'wss://gateway.discord.gg'
log log.Logger
log &log.Logger = unsafe { log.get_logger() }
rest REST
token string
mut:
Expand Down

0 comments on commit 4582615

Please sign in to comment.