sync: improve compatibility with -Wimpure-v

pull/12643/head
Delyan Angelov 2021-12-01 11:24:51 +02:00
parent 47aa2b1f93
commit 79cb303a6c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 1 additions and 2 deletions

View File

@ -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 // we should not get here but the V compiler want's to see a return statement
assert false panic('unknown `try_push_priv` state')
return .success
} }
[inline] [inline]