Make the io/conv.odin utilities be #optional_ok

This commit is contained in:
gingerBill
2021-09-29 13:24:42 +01:00
parent 057310472e
commit b2164b5da6
4 changed files with 29 additions and 30 deletions

View File

@@ -80,8 +80,7 @@ to_stream :: proc(b: ^Builder) -> io.Stream {
return io.Stream{stream_vtable=_builder_stream_vtable, stream_data=b}
}
to_writer :: proc(b: ^Builder) -> io.Writer {
w, _ := io.to_writer(to_stream(b))
return w
return io.to_writer(to_stream(b))
}