News for hackers. Stuff that matters.
Re:Fast Rust Builds by scottlamb on Sunday September 05, 2021 @04:14PM (#28427376)
You can chain calls in Rust. If read_to_end were written to allocate and return a fresh Vec, you could do this:

    File::open(path)?.read_to_end()
but instead read_to_end is written to take a presupplied Vec so the caller has the option to reduce allocations.

There are no comments on this comment yet.