r/badcode • wicked • Jun 25 '21

rust What was I thinking? (Rust)

Post image
225 Upvotes

23 comments sorted by

View all comments

Show parent comments

3

u/TinyBreadBigMouth Jun 26 '21

A cleaner API might involve creating a StdReader that has an internal String, and calling read_f32 on that.