Skip to content

Commit 74080e8

Browse files
committed
tests: fix v -W vlib/toml/tests/encode_and_decode_test.v
1 parent 91a3844 commit 74080e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/toml/tests/encode_and_decode_test.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ struct Example6 {
209209
}
210210

211211
fn test_encode_for_exotic_types() {
212-
assert toml.encode(Example6{ ptr: &voidptr(0), r: `🚀` }) == 'ptr = "0x0"\nr = "🚀"'
212+
assert toml.encode(Example6{ ptr: unsafe { &voidptr(nil) }, r: `🚀` }) == 'ptr = "0x0"\nr = "🚀"'
213213
}
214214

215215
fn test_array_encode_decode() {

0 commit comments

Comments
 (0)