News for hackers. Stuff that matters.
Re:Rust 1.1 Stable, the Community Subteam, and RustCamp by andy_ppp on Thursday June 25, 2015 @04:33PM (#9780733)
I really love that you can (have?) put tests in the same file as the threadpool implementation. I think I will start doing this myself...
Re:Rust 1.1 Stable, the Community Subteam, and RustCamp by steveklabnik on Thursday June 25, 2015 @04:36PM (#9780750)
Rust convention is to put unit tests in the same file. I like it too :)

Also, doc comments run as tests too, so https://github.com/rust-lang/threadpool/blob/master/src/lib.... will actually get executed as a test.