sync: improve compatibility with -Wimpure-v
parent
47aa2b1f93
commit
79cb303a6c
|
@ -415,8 +415,7 @@ fn (mut ch Channel) try_push_priv(src voidptr, no_block bool) ChanState {
|
|||
}
|
||||
}
|
||||
// we should not get here but the V compiler want's to see a return statement
|
||||
assert false
|
||||
return .success
|
||||
panic('unknown `try_push_priv` state')
|
||||
}
|
||||
|
||||
[inline]
|
||||
|
|
Loading…
Reference in New Issue