ci: reduce the noise in check annotations for github PR reviews, due to the new warning in option_test.c.v

This commit is contained in:
Delyan Angelov 2025-05-05 09:04:59 +03:00
parent 5adfc55b82
commit 84e2fd8c51
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -251,9 +251,9 @@ fn test_opt_ptr() {
else {
}
a := 3
mut r := opt_ptr(&a) or { &int(0) }
mut r := opt_ptr(&a) or { unsafe { &int(0) } }
assert r == &a
r = opt_ptr(&int(0)) or { return }
r = opt_ptr(unsafe { &int(0) }) or { return }
assert false
}