Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use several nice newish Rust features #1024
Pull Request Overview
As a push towards "Rust 2018", Rust is advertising several new features that are actually quite nice for Tock. This site: https://rust-lang-nursery.github.io/edition-guide/2018/index.html explains them.
What we really benefit from is that before we had to do:
impl<'a, A: Alarm + 'a> MyStruct<'a, A>
Now rust will just figure all that out, and we only need:
impl<A: Alarm> MyStruct<'a, A>
And the simple case is clean now. Before:
This is I think a lot closer to what someone new to rust would try to write.
This pull request was tested by compiling.
TODO or Help Wanted